FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backup-scheduler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yusuf Hamied Department of Chemistry
COs
backup-scheduler
Merge requests
!1
Improve pre error handling
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve pre error handling
improve_pre_error_handling
into
master
Overview
4
Commits
6
Pipelines
0
Changes
1
Merged
Dr Adam Thorn
requested to merge
improve_pre_error_handling
into
master
4 years ago
Overview
4
Commits
6
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
9f8b5dc4
Prev
Next
Show latest version
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9f8b5dc4
Make zfs-rsync.sh exit in error if PRE script fails
· 9f8b5dc4
Dr Adam Thorn
authored
4 years ago
ROOT/usr/lib/chem-zfs-backup-server/zfs-rsync.sh
+
7
−
0
Options
@@ -34,6 +34,13 @@ fi
# Prepare the host if required
if
[
!
-z
"
$PRE
"
]
;
then
$PRE
$HN
>>
$LOGDIR
/
${
HN
}
_
${
TAG
}
-pre
.log 2>&1
PRE_EXIT
=
$?
if
[
$PRE_EXIT
-ne
0
]
;
then
echo
PRE script
$PRE
exited with
$PRE_EXIT
>>
$LOGFILE
exit
$PRE_EXIT
fi
fi
# Do the backup
Loading