From 40dec3955c75852b1e88d4d0b2c02ba91f0f2264 Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Fri, 4 Nov 2005 18:59:48 -0700 Subject: [PATCH] Handle sparse files efficiently. --- 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 54706fd..ec7b1da 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="-W -H -l -p -t -g -o -0 --files-from=- --stats --progress" +rsyncopts="-W -H -S -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 fa16130..6592d72 100755 --- a/scripts/restore-script.sh +++ b/scripts/restore-script.sh @@ -48,6 +48,6 @@ for date in $dates; do fi done - rsyncopts="-W -H -l -p -t -g -o -0 --files-from=- --stats --progress" + rsyncopts="-W -H -S -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