Merge branch 'master' of ecbaldwin.net:/home/cnb/dvl/backup/
[backups/.git] / scripts / pack-image.sh
index 89c9c0e69035b381859446526701753f37dc9ac1..ec7b1da74e99b2e8a1738eed0190c3f2c6feeb41 100755 (executable)
@@ -14,9 +14,6 @@ restorescript="$scriptsdir/restore.sh"
 
 echo "Creating directories"
 mkdir --mode=700 -p $datadir $imagedir $isomountdir $tmpdir
-chgrp backup $imagedir
-chmod g+s    $imagedir
-chmod g+w    $imagedir
 
 echo "Creating the iso image in $isoimage"
 dd if=/dev/null of=$isoimage bs=1M count=0 seek=4440
@@ -41,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"