changed notes
[backups/.git] / scripts / pack-image.sh
index 60e6c50ca3370dd0037d65aa7066a4822528847a..ec7b1da74e99b2e8a1738eed0190c3f2c6feeb41 100755 (executable)
@@ -2,7 +2,7 @@
 
 scriptsdir=$(dirname $0)
 
-export PATH=$scriptsdir:$PATH
+export PATH=$scriptsdir:/bin:/usr/bin:/sbin:/usr/sbin
 
 . config.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 -S -l -p -t -g -o -0 --files-from=- --stats --progress"
 cat $backups | rsync $rsyncopts / $isomountdir
 
 echo "Copying over database and status file"