instead of deleting old snapshot, change to number algorithm and note that it can be removed
This commit is contained in:
@@ -402,8 +402,8 @@ for x in $selected_configs; do
|
|||||||
# is an identical subvolume to the old snapshot at the receiving
|
# is an identical subvolume to the old snapshot at the receiving
|
||||||
# location where it can get its data. This helps speed up the transfer.
|
# location where it can get its data. This helps speed up the transfer.
|
||||||
btrfs send -c "$old_snap" "$new_snap" | $ssh btrfs receive "$backup_location"
|
btrfs send -c "$old_snap" "$new_snap" | $ssh btrfs receive "$backup_location"
|
||||||
printf "Deleting old snapshot for %s...\n" "$x" | tee $PIPE
|
printf "Modifying data for old snapshot for %s...\n" "$x" | tee $PIPE
|
||||||
snapper -c "$x" delete "$old_num"
|
snapper -v -c "$x" modify -d "old snap-sync snapshot (you may remove)" -u "backupdir=,uuid=" -c "number" "$old_num"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $ssh ]]; then
|
if [[ -z $ssh ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user