diff --git a/roles/restic.nix b/roles/restic.nix index 1a79c25..8fd16de 100644 --- a/roles/restic.nix +++ b/roles/restic.nix @@ -13,8 +13,11 @@ backupPrepareCommand = '' #!${pkgs.bash}/bin/sh ${pkgs.zfs}/bin/zfs snapshot zpool/home@restic + cd /home/.zfs/snapshot/restic + ${pkgs.coreutils}/bin/ls > /dev/null ${pkgs.zfs}/bin/zfs snapshot zpool/var@restic - ${pkgs.coreutils}/bin/sleep 10 + cd /var/.zfs/snapshot/restic + ${pkgs.coreutils}/bin/ls > /dev/null ''; backupCleanupCommand = '' #!${pkgs.bash}/bin/sh