Akamad007
Akamad007

Reputation: 1601

Django:Backup and restore

I have been reading about process to do backup and restore in django. The best i could come up with was to dumpdata. i.e. python manage.py dumpdata >foo.json

Now to restore this data we will have to delete or drop the present table, then restore this json file using it as a fixture. i.e. do syncdb Is there any particular way of doing this ? i.e. is there any process which can be used every-time we do backup and restore? I am looking for a tool like south, which can used for database backup and restore.

I am planning to get my site online.So any help will be highly appreciated.

Upvotes: 0

Views: 3102

Answers (2)

Lorin Hochstein
Lorin Hochstein

Reputation: 59202

The django-dbbackup package can do database backups and restores.

Upvotes: 2

Burhan Khalid
Burhan Khalid

Reputation: 174624

For proper backup and restore, use the tools that came with your database.

If you must use django, write your own custom management commands (but again, I question the wisdom of this).

Upvotes: 1

Related Questions