stop masto server before backups to try to prevent ooms
This commit is contained in:
parent
cfc40ca8c7
commit
f28b7476c8
1 changed files with 4 additions and 0 deletions
|
@ -25,8 +25,12 @@ in rec {
|
||||||
repository = "b2:cyplo-restic-vpsfree";
|
repository = "b2:cyplo-restic-vpsfree";
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = ''
|
||||||
mkdir -p ${containersBackupPath}/
|
mkdir -p ${containersBackupPath}/
|
||||||
|
systemctl stop container@mastodon.service
|
||||||
${pkgs.podman}/bin/podman volume export woodpecker-server-data -o ${containersBackupPath}/woodpecker.tar
|
${pkgs.podman}/bin/podman volume export woodpecker-server-data -o ${containersBackupPath}/woodpecker.tar
|
||||||
'';
|
'';
|
||||||
|
backupCleanupCommand = ''
|
||||||
|
systemctl start container@mastodon.service
|
||||||
|
'';
|
||||||
timerConfig = { OnCalendar = "hourly"; };
|
timerConfig = { OnCalendar = "hourly"; };
|
||||||
environmentFile =
|
environmentFile =
|
||||||
"${config.sops.secrets.restic-backups-b2-environment.path}";
|
"${config.sops.secrets.restic-backups-b2-environment.path}";
|
||||||
|
|
Loading…
Reference in a new issue