A simple backup command for Django
This is a fork of the django-backup app
This app backs up database and the media directory on the local disk in a plain directory, without subdirectories.
It does not set a goal of syncing files offsite.
To sync the files or do other post-processing,
please use a signal
or an independent script.
To list and download the backup files via the web, try application django-directory
Add to the
SIMPLE_BACKUP_DIRECTORY - directory where the backups will be stored. Default value
'backups', relative to the current working directory. This setting can be over-ridden
with the option
--output-directory (or shorter version
SIMPLE_BACKUP_DAYS - number of days to keep the backup files. Default value is
If set, older files will be deleted automatically each time the new backup is made.
This walue can be over-ridden with a
--days option to the command.
To avoid accidental deletion of valuable files when the above setting/option is used, make sure that the backup directory contains only backups.
backup - backs up the site. See output of
python manage.py backup --help for more information.
backup sends a signal
the backup is prepared and copied to the backups directory.