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
118d7587
Commit
118d7587
authored
12 years ago
by
rhatto
Browse files
Options
Downloads
Patches
Plain Diff
Changing pipefail just when it's really needed
parent
fbf25018
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
+2
-2
2 additions, 2 deletions
handlers/rsync.in
with
2 additions
and
2 deletions
handlers/rsync.in
+
2
−
2
View file @
118d7587
...
...
@@ -1131,7 +1131,6 @@ set_rsync_options
start_mux
stop_services
mount_rw
set_pipefail
starttime
=
"
`
date
+%c%n%s
`
"
echo
"Starting backup at
`
echo
$starttime
|
head
-n
1
`
"
>>
$log
...
...
@@ -1146,17 +1145,18 @@ for SECTION in $include; do
info
"Syncing
$SECTION
on
$dest_path
..."
debug
$nice
$rsync
"
${
rsync_options
[@]
}
"
$filelist_flag
$excludes
$batch_option
$orig
$dest_path
set_pipefail
$nice
$rsync
"
${
rsync_options
[@]
}
"
$filelist_flag
$excludes
$batch_option
$orig
$dest_path
|
tee
-a
$log
if
[
"
$?
"
!=
"0"
]
;
then
fatal
"Rsync error when trying to transfer
$SECTION
"
fi
restore_pipefail
update_metadata
done
restore_pipefail
mount_ro
run_fsck
start_services
...
...
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