From 1d9f22951c3eaffe1987b757247c03ce49225745 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 11 Nov 2016 14:53:17 -0600 Subject: [PATCH] Copy info.xml on first backup Fixes #7. --- bin/snap-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/snap-sync b/bin/snap-sync index 2b24080..f5b5609 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -188,10 +188,11 @@ for x in $selected_configs; do # is an identical subvolume to the old snapshot at the receiving # 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 - cp "$new_info" "$backup_location" snapper -c "$x" delete "$old_number" fi + cp "$new_info" "$backup_location" + userdata="backupdir=$mybackupdir, uuid=$selected_uuid" # Tag new snapshot as the latest