Copias de seguridad

Copias de segurdad. Backup y restore
pip install django-dbbackup


# settings.py
INSTALLED_APPS = (
    ...
    'dbbackup',  # django-dbbackup
)

DBBACKUP_STORAGE = 'django.core.files.storage.FileSystemStorage'
DBBACKUP_STORAGE_OPTIONS = {'location': '/my/backup/dir/'}


$ python manage.py dbbackup
$ python manage.py dbrestore
$ python manage.py mediabackup
$ python manage.py dumpdata
$ python manage.py loaddata
Última modificación October 21, 2022: inicio django (f6c0691)