From dcc0124d9ce7b2d6ee2230425e61446f9cc86a2d Mon Sep 17 00:00:00 2001 From: Carl N Baldwin Date: Fri, 4 Nov 2005 17:13:57 -0700 Subject: [PATCH] Preserve hard-links on the target and copy whole-file only --- scripts/pack-image.sh | 2 +- scripts/restore-script.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1