From: Carl Baldwin Date: Sat, 5 Nov 2005 01:59:48 +0000 (-0700) Subject: Handle sparse files efficiently. X-Git-Tag: release-0.4~24 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/%7Blink_activity%7D?a=commitdiff_plain;h=40dec3955c75852b1e88d4d0b2c02ba91f0f2264;p=backups%2F.git Handle sparse files efficiently. --- 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