aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-10-17 18:35:12 +0200
committerKarel Kočí <cynerd@email.cz>2024-10-17 18:35:12 +0200
commitfad91f3e81a53ff72d36a64329012efc1d54532a (patch)
tree88a9beb2ae170c8c819bfcc937435218facb68af /nixos/configurations
parent639fd2cc86123f7a34300a645cc1bc5ebf83ad1a (diff)
downloadnixos-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/configurations')
-rw-r--r--nixos/configurations/lipwig.nix28
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";
};
};