ADD Postgresql backup

alacritty
Alexandre LUCAZEAU 2022-07-08 08:07:53 +00:00
parent 41d5cc516d
commit 9724af4bde
1 changed files with 7 additions and 2 deletions

View File

@ -4,12 +4,17 @@ services.restic.backups = {
localbackup = { localbackup = {
initialize = true; initialize = true;
passwordFile = "/run/restic_pass"; passwordFile = "/run/restic_pass";
paths = [ "/var/lib/nextcloud/data/" ]; paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
repository = "rest:https://back.atlanticaweb.fr/Nextcloud"; repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
timerConfig = { timerConfig = {
OnCalendar = "00:05"; OnCalendar = "02:05";
RandomizedDelaySec = "5h"; RandomizedDelaySec = "5h";
}; };
}; };
}; };
services.postgresqlBackup = {
enable = true;
backupAll = true;
# location = "/var/lib/nextcloud/data/backup";
};
} }