Adapted to new server architecture

This commit is contained in:
Antoine Lima 2021-12-28 14:36:10 +00:00
parent 98403c3ac1
commit 5b746d9893

View File

@ -7,18 +7,18 @@ global:
backends:
hdd:
type: local
path: /home/yunohost.backup/restic
path: /mnt/hdd/autorestic.backup
locations:
databases:
from: /var/backups/working/db-dumps
from: /mnt/ssd/backup-working/db-dumps
to:
- hdd
cron: '0 3 * * 4' # At 3:00am on Thursday
hooks:
before:
- sudo -u postgres /usr/bin/pg_dumpall > /var/backups/working/db-dumps/postgres.dump
- sudo /usr/bin/mysqldump --all-databases > /var/backups/working/db-dumps/mysql.dump
- sudo -u postgres /usr/bin/pg_dumpall > /mnt/ssd/backup-working/db-dumps/postgres.dump
- /usr/bin/mysqldump --all-databases > /mnt/ssd/backup-working/db-dumps/mysql.dump
configs:
from:
@ -34,13 +34,13 @@ locations:
keep-weekly: 5
gitea:
from: /var/backups/working/gitea
from: /mnt/ssd/backup-working/gitea
to:
- hdd
cron: '0 3 * * 4' # At 3:00am on Thursday
hooks:
before:
- sudo -u gitea /opt/gitea/gitea dump -f /var/backups/working/gitea/gitea.zip
- sudo -u gitea /opt/gitea/gitea dump -f - > /mnt/ssd/backup-working/gitea/gitea.zip
home:
from:
@ -48,8 +48,6 @@ locations:
- /home/baptiste
- /home/con
- /home/roxane
- /home/thomas
- /home/tobias
to:
- hdd
cron: '0 3 * * 4' # At 3:00am on Thursday