Add cd/ls because apparently ZFS snapshots are only visible on demand.
This commit is contained in:
parent
25d33394e9
commit
46dc54ccca
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue