Add cd/ls because apparently ZFS snapshots are only visible on demand.

This commit is contained in:
Nolan Darilek 2025-07-18 09:31:15 -05:00
parent 25d33394e9
commit 46dc54ccca

View file

@ -13,8 +13,11 @@
backupPrepareCommand = '' backupPrepareCommand = ''
#!${pkgs.bash}/bin/sh #!${pkgs.bash}/bin/sh
${pkgs.zfs}/bin/zfs snapshot zpool/home@restic ${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.zfs}/bin/zfs snapshot zpool/var@restic
${pkgs.coreutils}/bin/sleep 10 cd /var/.zfs/snapshot/restic
${pkgs.coreutils}/bin/ls > /dev/null
''; '';
backupCleanupCommand = '' backupCleanupCommand = ''
#!${pkgs.bash}/bin/sh #!${pkgs.bash}/bin/sh