From 2bf727c1407fa7bbf724f0259c4ff064a8444b86 Mon Sep 17 00:00:00 2001
From: Silvio Rhatto <rhatto@riseup.net>
Date: Sat, 25 Sep 2010 16:27:11 -0300
Subject: [PATCH] Don't remove created metadata after rotation at rsync

---
 handlers/rsync.in | 2 --
 1 file changed, 2 deletions(-)

diff --git a/handlers/rsync.in b/handlers/rsync.in
index 537fd4c5..7b06c243 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
-- 
GitLab