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
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
lyz
backupninja
Commits
ed9d1046
Commit
ed9d1046
authored
16 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
stop failing on all the trac backups if just one fails
parent
b499255f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+3
-0
3 additions, 0 deletions
ChangeLog
handlers/trac.in
+5
-11
5 additions, 11 deletions
handlers/trac.in
with
8 additions
and
11 deletions
ChangeLog
+
3
−
0
View file @
ed9d1046
...
...
@@ -52,6 +52,9 @@ version 0.9.6 -- unreleased
. Added more robust software RAID information capture by running mdadm
-Q --detail /dev/md?* because some people may have empty mdadm.conf files
(Thanks to John Hallam).
trac:
. stop failing on all the trac backups if just one fails, this means
removing the temporary trac backup directories if they fail
version 0.9.5 -- December 2, 2007
backupninja changes
...
...
This diff is collapsed.
Click to expand it.
handlers/trac.in
+
5
−
11
View file @
ed9d1046
...
...
@@ -9,7 +9,6 @@ getconf src /var/lib/trac
getconf dest /var/backups/trac
getconf tmp /var/backups/trac.tmp
error
=
0
cd
$src
for
repo
in
`
find
.
-name
VERSION
`
do
...
...
@@ -38,19 +37,14 @@ do
fi
if
[
$code
!=
0
]
;
then
error
"command failed -- trac-admin
$src
/
$repo
hotcopy
$tmp
/
$repo
"
error
=
1
fi
done
if
[
$error
-eq
1
]
;
then
echo
"Error: because of earlier errors, we are leaving trac backups in
$tmp
instead of
$dest
"
else
if
[
-d
$dest
-a
-d
$tmp
]
;
then
rm
-rf
$dest
fi
if
[
-d
$tmp
]
;
then
mv
$tmp
$dest
fi
if
[
-d
$dest
-a
-d
$tmp
]
;
then
rm
-rf
$dest
fi
if
[
-d
$tmp
]
;
then
mv
$tmp
$dest
fi
exit
0
...
...
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