Re: Backup vs Audit

50 views
Skip to first unread message
Message has been deleted

Russell Keith-Magee

unread,
Dec 8, 2014, 6:38:04 PM12/8/14
to Django Users
Hi Andrea,

In short, you don't - at least, not out of the box. That's not what Django's admin interface is for. Django's admin is a quick-and-dirty CRUD interface you can throw over some models, with some customisation hooks that means it has a lifespan beyond initial bootstrapping.

It isn't a sysadmin tool, or a dbadmin tool, or anything like that.

If you want to backup and/or restore your database, you need to use a database backup tool. There are a range of options, depending on the database you're using; but I'm not aware of any particularly common options that are integrated with Django's admin.

Yours,
Russ Magee %-)

On Mon, Dec 8, 2014 at 9:22 PM, Andrea Zakowicz <andreaz...@gmail.com> wrote:
Hi I wonder if you are aware of how to backup / restoration database and audit from the django admin.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6a51def8-3c9c-4d11-92a8-908257478a1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Tom Evans

unread,
Dec 9, 2014, 5:24:16 AM12/9/14
to django...@googlegroups.com
On Tue, Dec 9, 2014 at 10:06 AM, Andrea Zakowicz
<andreaz...@gmail.com> wrote:
> Most of the tools I've found is administered from commands and no template
> Django admin.
> What I want is to do both operations from the manager but found nothing.
> Help!!
> For example, proven tools are auditlog and dbbackup.
>

Off the top of my head there are several reasons why there are few
tools (none that I know of/trust/use) in the DB backup space:

1) good DB management does not happen from a UI, it happens from an
automated system, which will run non interactive commands.
2) For any non trivial database, you aren't going to back it up in the
context of a single request- it should be handled outside the
request-response cycle. This sort of behaviour is not built in to
django - there are good packages that provide it, but why go to the
complexity given the points in 1).

There are plenty of audit trail packages that integrate with django
admin, since audit trails are simply model instances tracking changes
to other model instances. Keywords "django audit".

Cheers

Tom

Lachlan Musicman

unread,
Dec 9, 2014, 5:33:34 AM12/9/14
to django...@googlegroups.com
I've used dbbackup with success - a cronjob to copy out the database
(and replace the testing and staging databases with "yesterday's
data") and copy it to another machine.

Regards the Django admin interface, there are a number of points to consider:
- the base interface will always be in the Django source repository,
and is well tagged. You should always be able to redeploy from that
- any adjustments you have made could be going into another source
repository (git, mercurial, svn) of your own - which is another backup
again. If you aren't putting your own changes into a source
repository, I would suggest that is an excellent start.

FWIW, and I apologise for sounding like a broken record, Danny G and
Audrey R's Two Scoops of Django is an *excellent* place to start if
you are comfortable with the tutorial and looking for a "what next"
text. I found it invaluable for helping with these weird little
decisions that seem so far from the actual creation of the site you
are making.

L.

On 9 December 2014 at 21:06, Andrea Zakowicz <andreaz...@gmail.com> wrote:
> Most of the tools I've found is administered from commands and no template
> Django admin.
> What I want is to do both operations from the manager but found nothing.
> Help!!
> For example, proven tools are auditlog and dbbackup.
>
>
>
>
> El lunes, 8 de diciembre de 2014 10:22:49 UTC-3, Andrea Zakowicz escribió:
>>
>> Hi I wonder if you are aware of how to backup / restoration database and
>> audit from the django admin.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5e7524e4-7bed-4459-85ea-57107f5b5778%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
-----------------------------------------------------------------------------------------------------------
The Most Terrifying Thought Experiment of All Time
http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html

Lachlan Musicman

unread,
Dec 9, 2014, 5:34:20 AM12/9/14
to django...@googlegroups.com
Sorry, what I should have lead with is "at the moment there is no
point and click backup solution for your whole package".
Reply all
Reply to author
Forward
0 new messages