fix folder_snapshot to handle @ snapshots

master
David Kebler 2024-08-23 14:15:40 -07:00
parent 2cadfcb4e2
commit 9c51109d2e
1 changed files with 5 additions and 1 deletions

View File

@ -112,7 +112,11 @@ folder_snapshot() {
if [[ -d $2/$sv ]]; then if [[ -d $2/$sv ]]; then
echo snapshot $sv already exists in $2. You must manually delete target snapshots! echo snapshot $sv already exists in $2. You must manually delete target snapshots!
else else
sudo $BTRFS_BIN sub snap $readonly $1/$sv $2 if sudo mkdir -p "$2" > /dev/null; then
sudo $BTRFS_BIN sub snap $readonly "$1/$sv" "$2/$sv"
else
echo unable to make directory $2 so can not make subvolumes therein
fi
fi fi
done done