{% extends "admin/dbs/wiki/_layout.html" %} {% block wiki %}

Getting started

Declare what to back up

DBS backs up every model it finds. To narrow that, add a dbs.py to an app:

from dbs import backup_registry, ModelBackup
from myapp.models import Invoice

@backup_registry.register
class InvoiceBackup(ModelBackup):
    model = Invoice

Take a backup

From this panel, use Take a backup. From a shell:

python manage.py dbs backup /var/backups/app.dbs

Keep taking them

python manage.py dbs schedule --interval 6h --output-dir /var/backups --keep 14

Run one scheduler per output directory. Two loops sharing a directory race on retention.

{% endblock %}