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