Copy info.xml on first backup

Fixes #7.
This commit is contained in:
James Barnett
2016-11-11 14:53:17 -06:00
parent 22f306c6f3
commit 1d9f22951c

View File

@@ -188,10 +188,11 @@ 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 "$new_snapshot" -c "$old_snapshot" | btrfs receive "$backup_location" &>/dev/null btrfs send "$new_snapshot" -c "$old_snapshot" | btrfs receive "$backup_location" &>/dev/null
cp "$new_info" "$backup_location"
snapper -c "$x" delete "$old_number" snapper -c "$x" delete "$old_number"
fi fi
cp "$new_info" "$backup_location"
userdata="backupdir=$mybackupdir, uuid=$selected_uuid" userdata="backupdir=$mybackupdir, uuid=$selected_uuid"
# Tag new snapshot as the latest # Tag new snapshot as the latest