dsnap-sync: adapt src_uuid to respect target mountpoint

This commit is contained in:
2018-06-25 20:09:23 +02:00
parent 6c8f72dd1a
commit b0b192ab77

View File

@@ -1034,7 +1034,7 @@ run_finalize () {
# This is how we find the parent. # This is how we find the parent.
src_host=$(eval cat /etc/hostname) src_host=$(eval cat /etc/hostname)
src_uuid=$(eval findmnt --noheadings --output UUID $SUBVOLUME) src_uuid=$(eval findmnt --noheadings --output UUID --target $SUBVOLUME)
src_subvolid=$(eval findmnt --noheadings --output OPTIONS $SUBVOLUME | sed -e 's/.*subvolid=\([0-9]*\).*/\1/') src_subvolid=$(eval findmnt --noheadings --output OPTIONS $SUBVOLUME | sed -e 's/.*subvolid=\([0-9]*\).*/\1/')
userdata="backupdir=$backup_dir, subvolid=$selected_subvol, uuid=$selected_uuid, host=$remote" userdata="backupdir=$backup_dir, subvolid=$selected_subvol, uuid=$selected_uuid, host=$remote"
target_userdata="subvolid=$src_subvolid, uuid=$src_uuid, host=$src_host" target_userdata="subvolid=$src_subvolid, uuid=$src_uuid, host=$src_host"