Preserve hard-links on the target and copy whole-file only
[backups/.git] / scripts / restore-script.sh
index acd90081c17aa632ec6d17c1de9290491935e1d6..fa16130323f4a2997a6eddfa3949a4997e585dd4 100755 (executable)
@@ -48,6 +48,6 @@ for date in $dates; do
     fi
   done
 
-  rsyncopts="-l -p -t -g -o -0 --files-from=- --stats --progress"
+  rsyncopts="-W -H -l -p -t -g -o -0 --files-from=- --stats --progress"
   cat $dbfile | files-from-date.sh $date | rsync $rsyncopts ${mountdir%%/}/ ${2%%/}/
 done