[tasks] Fix backup locations
This commit is contained in:
13
README.md
13
README.md
@ -29,14 +29,15 @@ A backup command is available via `./manage.py backup_database` (also runs on a
|
||||
Configure these additional settings as needed:
|
||||
|
||||
```
|
||||
DB_BACKUP_SSH_KEY="/path/to/ssh/private/key"
|
||||
DB_BACKUP_SSH_DEST="user@backup.example.com:/remote/path/"
|
||||
DB_BACKUP_NTFY_URL="https://ntfy.sh/your-topic"
|
||||
VROBBLER_DB_BACKUP_SSH_KEY="/path/to/ssh/private/key"
|
||||
VROBBLER_DB_BACKUP_SSH_DEST="user@backup.example.com:/remote/path/"
|
||||
VROBBLER_DB_BACKUP_NTFY_URL="https://ntfy.sh/your-topic"
|
||||
```
|
||||
|
||||
- `DB_BACKUP_SSH_KEY` — Path to the SSH private key used for remote copy.
|
||||
- `DB_BACKUP_SSH_DEST` — SCP destination (user@host:path). If set alongside SSH_KEY, the backup is copied to the remote host and old backups are pruned.
|
||||
- `DB_BACKUP_NTFY_URL` — ntfy.sh URL for success notifications. Defaults to `https://ntfy.unbl.ink/backups`.
|
||||
- `VROBBLER_DB_BACKUP_SSH_KEY` — Path to the SSH private key used for remote copy.
|
||||
- `VROBBLER_DB_BACKUP_SSH_DEST` — SCP destination (user@host:path). If set, the backup is copied to the remote host and old backups are pruned.
|
||||
- `VROBBLER_DB_BACKUP_LOCAL_DIR` — Local directory for backup storage. Defaults to `/var/backups/`. Backups are stored in a `vrobbler/` subdirectory.
|
||||
- `VROBBLER_DB_BACKUP_NTFY_URL` — ntfy.sh URL for success notifications. Defaults to `https://ntfy.unbl.ink/backups`.
|
||||
|
||||
Retention is hardcoded: keeps daily backups for 7 days, plus one per month for 12 months.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user