diff options
Diffstat (limited to '')
-rw-r--r-- | modules/system/services/backup/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/system/services/backup/default.nix b/modules/system/services/backup/default.nix index e5f6e241..92700bf2 100644 --- a/modules/system/services/backup/default.nix +++ b/modules/system/services/backup/default.nix @@ -5,6 +5,8 @@ ... }: let backup-script = pkgs.writeShellScriptBin "backsnap" '' + set -xeu; + ${pkgs.util-linux}/bin/mount --mkdir "/dev/disk/by-uuid/${cfg.backupDiskUuid}" "/run/media/${cfg.backupDiskUuid}"; ${pkgs.snap-sync-forked}/bin/snap-sync-forked --UUID "${cfg.backupDiskUuid}" --noconfirm; ${pkgs.util-linux}/bin/umount "/run/media/${cfg.backupDiskUuid}"; |