Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Liberate
backupninja
Commits
2bf727c1
Commit
2bf727c1
authored
14 years ago
by
rhatto
Browse files
Options
Downloads
Patches
Plain Diff
Don't remove created metadata after rotation at rsync
parent
eff27ce1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/rsync.in
+0
-2
0 additions, 2 deletions
handlers/rsync.in
with
0 additions
and
2 deletions
handlers/rsync.in
+
0
−
2
View file @
2bf727c1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment