From b0b192ab7706a6e25bd5a2e28145cd3501f4e169 Mon Sep 17 00:00:00 2001 From: Ralf Zerres Date: Mon, 25 Jun 2018 20:09:23 +0200 Subject: [PATCH] dsnap-sync: adapt src_uuid to respect target mountpoint --- bin/dsnap-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dsnap-sync b/bin/dsnap-sync index 2f8f6c2..116678a 100755 --- a/bin/dsnap-sync +++ b/bin/dsnap-sync @@ -1034,7 +1034,7 @@ run_finalize () { # This is how we find the parent. 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/') userdata="backupdir=$backup_dir, subvolid=$selected_subvol, uuid=$selected_uuid, host=$remote" target_userdata="subvolid=$src_subvolid, uuid=$src_uuid, host=$src_host"