]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Preserving hardlinks at sync-backups
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Nov 2010 01:34:33 +0000 (23:34 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Nov 2010 01:34:33 +0000 (23:34 -0200)
files/sync-backups

index 87a4a7516815403277985b1f845df01a4646855d..1588dceb516519648ea1ce76a5aadbc974a4a5dd 100644 (file)
@@ -7,7 +7,7 @@ NODE="$1"
 MEDIA="/media/usb"
 BWLIMIT="5000"
 IMAGES="/var/data/crypt/"
-RSYNC="nice -n 19 rsync -av --delete --bwlimit=$BWLIMIT"
+RSYNC="nice -n 19 rsync -avH --delete --bwlimit=$BWLIMIT"
 
 if [ ! -z "$NODE" ]; then
   for node in `ls /var/vservers/$NODE/var/backups/remote/`; do