143 lines
2.8 KiB
YAML
143 lines
2.8 KiB
YAML
version: 2
|
|
|
|
global:
|
|
forget:
|
|
keep-monthly: 1
|
|
|
|
backends:
|
|
hdd:
|
|
type: local
|
|
path: /mnt/hdd/autorestic.backup
|
|
|
|
oiseauroch:
|
|
type: sftp
|
|
path: backup_oiseauroch:/backup_sagouin/backups
|
|
|
|
glacier:
|
|
type: rclone
|
|
path: scaleway-glacier:/autorestic-sagou.in
|
|
|
|
locations:
|
|
databases:
|
|
from: /mnt/ssd/backup-working/db-dumps
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
hooks:
|
|
before:
|
|
- 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:
|
|
- /etc
|
|
- /var/spool/cron/crontabs/
|
|
- /opt/yunohost/wireguard/db/
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
options:
|
|
forget:
|
|
keep-weekly: 5
|
|
|
|
bludit:
|
|
from:
|
|
- /var/www/bludit/bl-content/pages/
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
options:
|
|
forget:
|
|
keep-weekly: 5
|
|
|
|
gitea:
|
|
from: /mnt/ssd/backup-working/gitea
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
hooks:
|
|
before:
|
|
- sudo -u gitea /var/www/gitea/gitea dump -f - > /mnt/ssd/backup-working/gitea/gitea.zip
|
|
|
|
home:
|
|
from:
|
|
- /home/agathe
|
|
- /home/antoine
|
|
- /home/baptiste
|
|
- /home/con
|
|
- /home/josephine
|
|
- /home/mariage
|
|
- /home/marieclaire
|
|
- /home/oiseauroch
|
|
- /home/raphaeldutrieux
|
|
- /home/roxane
|
|
- /home/shrek
|
|
- /home/thomas
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
|
|
nextcloud:
|
|
from:
|
|
- /home/yunohost.app/nextcloud
|
|
options:
|
|
backup:
|
|
exclude:
|
|
- '**/cache'
|
|
- '**/files_versions'
|
|
- '**/files_trashbin'
|
|
- '**/appdata_ocfigi57i0ri'
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
#hooks:
|
|
#before:
|
|
#- sudo -u www-data php occ maintenance:mode --on # Lock new logins
|
|
#after:
|
|
#- sudo -u www-data php occ maintenance:mode --off
|
|
|
|
bookstack:
|
|
from:
|
|
- /var/www/bookstack/.env
|
|
- /var/www/bookstack/public/uploads
|
|
- /var/www/bookstack/storage/uploads
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
|
|
mail:
|
|
from:
|
|
- /var/mail
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|
|
|
|
# All multimedia folders but the shared (separate location)
|
|
multimedia:
|
|
from:
|
|
- /home/yunohost.multimedia/
|
|
options:
|
|
backup:
|
|
exclude:
|
|
- '/home/yunohost.multimedia/share'
|
|
to:
|
|
- hdd
|
|
- oiseauroch
|
|
- glacier
|
|
cron: '0 3 * * 4' # At 3:00am on Thursday
|