From fad91f3e81a53ff72d36a64329012efc1d54532a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 17 Oct 2024 18:35:12 +0200 Subject: nixos/lipwig: do not switch nextcloud to maintenance These are separate jobs and thus they are running in the parallel and doesn't work in such case for some reason. I might have to revert that in the future but right now just backup with live nextcloud. --- nixos/configurations/lipwig.nix | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'nixos/configurations') diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index 167f1a3..ce34115 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -26,29 +26,11 @@ wireguard = true; openvpn.oldpersonal = true; borgjobs = { - postgresql = { - preHook = '' - /run/current-system/sw/bin/nextcloud-occ maintenance:mode --on - ''; - dumpCommand = pkgs.writeScript "postgreqsl-backup.sh" '' - /run/wrappers/bin/sudo -u postgres /run/current-system/sw/bin/pg_dumpall - ''; - postHook = '' - /run/current-system/sw/bin/nextcloud-occ maintenance:mode --off - ''; - }; - nextcloud_data = { - preHook = '' - /run/current-system/sw/bin/nextcloud-occ maintenance:mode --on - ''; - paths = "/nas/nextcloud/data"; - postHook = '' - /run/current-system/sw/bin/nextcloud-occ maintenance:mode --off - ''; - }; - sync_data = { - paths = "/nas/sync"; - }; + postgresql.dumpCommand = pkgs.writeScript "postgreqsl-backup.sh" '' + /run/wrappers/bin/sudo -u postgres /run/current-system/sw/bin/pg_dumpall + ''; + nextcloud_data.paths = "/nas/nextcloud/data"; + sync_data.paths = "/nas/sync"; }; }; -- cgit v1.2.3