]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Don't remove created metadata after rotation at rsync
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 25 Sep 2010 19:27:11 +0000 (16:27 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 25 Sep 2010 19:29:43 +0000 (16:29 -0300)
handlers/rsync.in

index 537fd4c53e5ed05d09959c951bece74adf39c100..7b06c243d1be9f56005d732e8a338e407d425524 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