fix restic prune
This commit is contained in:
parent
05cee346d8
commit
81bb6095dc
1 changed files with 3 additions and 2 deletions
|
@ -41,9 +41,9 @@
|
|||
set -ex
|
||||
|
||||
# Wait for the restic repository to be unlocked
|
||||
while [ -n "$(${pkgs.restic}/bin/restic list locks)" ]; then
|
||||
while [ -n "$(${pkgs.restic}/bin/restic list locks)" ]; do
|
||||
sleep 10
|
||||
fi
|
||||
done
|
||||
|
||||
# make the original read-only
|
||||
${pkgs.zfs}/bin/zfs set readonly=on tank/backup
|
||||
|
@ -64,6 +64,7 @@
|
|||
# Destroy the old dataset
|
||||
${pkgs.zfs}/bin/zfs destroy -rf tank/backup-old
|
||||
${pkgs.zfs}/bin/zfs destroy tank/backup@prune
|
||||
sleep 15
|
||||
${pkgs.zfs}/bin/zfs mount tank/backup
|
||||
'';
|
||||
in {
|
||||
|
|
Loading…
Reference in a new issue