From: Alexander Barton Date: Thu, 1 Oct 2015 12:43:47 +0000 (+0200) Subject: Use relative symlinks for ZFS snapshots X-Git-Url: https://arthur.barton.de/gitweb/?p=backup-script.git;a=commitdiff_plain;h=0f8877993a8ee6135c05e9e47fb21ff964fe38bb Use relative symlinks for ZFS snapshots This eases renaming of systems etc. --- diff --git a/bin/backup-script b/bin/backup-script index 544960d..185a62f 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -156,7 +156,7 @@ CloneSubvolume() { zfs snapshot "$snapshot" || return 1 link_name="$(echo "$snapshot" | cut -d@ -f2-)" ln -s \ - "$volume/.zfs/snapshot/$link_name" \ + "current/.zfs/snapshot/$link_name" \ "$(dirname "$volume")/$link_name" ;; *)