Handle sparse files efficiently.
[backups/.git] / scripts / pack-image.sh
index 54706fd1ccb739b3ed78e01d1066fc5624a9efd2..ec7b1da74e99b2e8a1738eed0190c3f2c6feeb41 100755 (executable)
@@ -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"