- Add
snapshot
toINSTALLED_APPS
in yoursettings.py
within your django project.
Use management command snap
./manage.py snap
help:
- snap save - take a snapshot at current time
- snap restore [i] - restore from [i] snapshot (0 by default)
- snap list - list all available snapshots
Program create *.tar.gz archive with files:
info.json - JSON description of archive's contents for
restore
commanddirectory_backup.2011-01-01.tar - backup of upload directory
database_postgres_backup.2011-01-01.sql - SQL database dump
All files created and restored automatically, you do not need to bother of their structure.
Django-snapshot works now only with PostgreSQL database. Nor sqlite or MySQL are not supported. If you have any suggestions, email developers. Any feedback is welcome.