version: 2 global: forget: keep-monthly: 1 backends: hdd: type: local path: /mnt/hdd/autorestic.backup glacier: type: rclone path: scaleway-glacier:/autorestic-sagou.in locations: databases: 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 > /mnt/ssd/backup-working/db-dumps/postgres.dump - /usr/bin/mysqldump --all-databases > /mnt/ssd/backup-working/db-dumps/mysql.dump configs: from: - /etc - /home/yunohost.conf - /var/spool/cron/crontabs/ - /opt/yunohost/wireguard/db/ to: - hdd - glacier cron: '0 3 * * 4' # At 3:00am on Thursday options: forget: keep-weekly: 5 gitea: from: /mnt/ssd/backup-working/gitea to: - hdd - glacier cron: '0 3 * * 4' # At 3:00am on Thursday hooks: before: - sudo -u gitea /opt/gitea/gitea dump -f - > /mnt/ssd/backup-working/gitea/gitea.zip home: from: - /home/antoine - /home/baptiste - /home/con - /home/roxane to: - hdd - 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 - 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 dokuwiki: from: - /var/www/dokuwiki/conf - /var/www/dokuwiki/data/pages - /var/www/dokuwiki/data/meta - /var/www/dokuwiki/data/media - /var/www/dokuwiki/data/media_meta to: - hdd - glacier cron: '0 3 * * 4' # At 3:00am on Thursday mail: from: - /var/mail to: - hdd - 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 - glacier cron: '0 3 * * 4' # At 3:00am on Thursday shared_multimedia: from: - /home/yunohost.multimedia/share to: - hdd cron: '0 3 1 * *' # At 3:00am on the 1st