aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-09-25 16:27:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-09-25 16:29:43 -0300
commit2bf727c1407fa7bbf724f0259c4ff064a8444b86 (patch)
treea2aaaea60534802cd30cbedf8f742d62263070c0
parenteff27ce1cd0cd4f25d23c7d51bfd5283b30882db (diff)
downloadbackupninja-2bf727c1407fa7bbf724f0259c4ff064a8444b86.tar.gz
backupninja-2bf727c1407fa7bbf724f0259c4ff064a8444b86.tar.bz2
Don't remove created metadata after rotation at rsync
-rw-r--r--handlers/rsync.in2
1 files changed, 0 insertions, 2 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 537fd4c..7b06c24 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -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