From 46dc54cccaab720b34823bd82bf8804d976d2928 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 18 Jul 2025 09:31:15 -0500 Subject: [PATCH] Add cd/ls because apparently ZFS snapshots are only visible on demand. --- roles/restic.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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