Skip to content
Snippets Groups Projects
Commit 2bf727c1 authored by rhatto's avatar rhatto
Browse files

Don't remove created metadata after rotation at rsync

parent eff27ce1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment