ADD Postgresql backup
This commit is contained in:
parent
41d5cc516d
commit
9724af4bde
|
@ -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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue