]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Don't remove created metadata after rotation at rsync
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 25 Sep 2010 19:30:14 +0000 (16:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 25 Sep 2010 19:30:14 +0000 (16:30 -0300)
files/handlers/rsync

index 7c400f114f14929c8120358b90857d5e365daf7a..a81283ff04ff5fd3f60038edcb3d861b9f152557 100644 (file)
@@ -416,7 +416,6 @@ function rotate_long {
             $nice mv $dir.$i $dir.$next
             mkdir -p $metadata.$next
             date +%c%n%s > $metadata.$next/rotated
-            rm -f $metadata.$next/created
           else
             echo "Debug: skipping rotation of $dir.$i because $dir.$next already exists."
           fi
@@ -518,7 +517,6 @@ function rotate_long_remote {
             $nice mv \$dir.\$i \$dir.\$next
             mkdir -p \$metadata.\$next
             date +%c%n%s > \$metadata.\$next/rotated
-            rm -f \$metadata.\$next/created
           else
             echo "Debug: skipping rotation of \$dir.\$i because \$dir.\$next already exists."
           fi