From: Carl N Baldwin Date: Sat, 5 Nov 2005 00:13:57 +0000 (-0700) Subject: Preserve hard-links on the target and copy whole-file only X-Git-Tag: release-0.4~25 X-Git-Url: http://git.pippins.net/embedvideo/images/static/%7Beqpres_ppi_link%7D?a=commitdiff_plain;h=dcc0124d9ce7b2d6ee2230425e61446f9cc86a2d;p=backups%2F.git Preserve hard-links on the target and copy whole-file only --- diff --git a/scripts/pack-image.sh b/scripts/pack-image.sh index 327d374..54706fd 100755 --- a/scripts/pack-image.sh +++ b/scripts/pack-image.sh @@ -38,7 +38,7 @@ echo "Determining list of files to backup with lsbackups" } | lsbackups > $backups 2>$statusfile echo "Running rsync to pack the image" -rsyncopts="-l -p -t -g -o -0 --files-from=- --stats --progress" +rsyncopts="-W -H -l -p -t -g -o -0 --files-from=- --stats --progress" cat $backups | rsync $rsyncopts / $isomountdir echo "Copying over database and status file" diff --git a/scripts/restore-script.sh b/scripts/restore-script.sh index acd9008..fa16130 100755 --- a/scripts/restore-script.sh +++ b/scripts/restore-script.sh @@ -48,6 +48,6 @@ for date in $dates; do fi done - rsyncopts="-l -p -t -g -o -0 --files-from=- --stats --progress" + rsyncopts="-W -H -l -p -t -g -o -0 --files-from=- --stats --progress" cat $dbfile | files-from-date.sh $date | rsync $rsyncopts ${mountdir%%/}/ ${2%%/}/ done