diff options
author | Karel Kočí <cynerd@email.cz> | 2024-10-17 18:35:12 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-10-17 18:35:12 +0200 |
commit | fad91f3e81a53ff72d36a64329012efc1d54532a (patch) | |
tree | 88a9beb2ae170c8c819bfcc937435218facb68af /nixos | |
parent | 639fd2cc86123f7a34300a645cc1bc5ebf83ad1a (diff) | |
download | nixos-personal-fad91f3e81a53ff72d36a64329012efc1d54532a.tar.gz nixos-personal-fad91f3e81a53ff72d36a64329012efc1d54532a.tar.bz2 nixos-personal-fad91f3e81a53ff72d36a64329012efc1d54532a.zip |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/configurations/lipwig.nix | 28 |
1 files changed, 5 insertions, 23 deletions
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"; }; }; |