Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
datadump
Commits
0ce9ab0f
Commit
0ce9ab0f
authored
Jul 08, 2019
by
Jonathan Schaeffer
Browse files
Retries with force
parent
e900e166
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/datadump.sh
View file @
0ce9ab0f
...
...
@@ -93,7 +93,7 @@ for dir in $(find . -maxdepth 3 -type d); do
continue
fi
log
"[
$KEY
] local checksum:
$local_sha
"
"debug"
log
"[
$KEY
] idos checksum:
$
local
_sha
"
"debug"
log
"[
$KEY
] idos checksum:
$
irods
_sha
"
"debug"
log
"[
$KEY
] Local checksum differs from last dump. Let's dump it"
irm
$KEY
/previous.tar
>
/dev/null 2>&1
# Silently remove previous.tar, ignore errors
...
...
@@ -112,11 +112,11 @@ for dir in $(find . -maxdepth 3 -type d); do
# {
iput
\
--lfrestart
$RESIFDD_WORKDIR
/
$KEY
.lfrestart
\
--retries
5
-T
-K
\
--retries
5
-T
-K
-f
\
$RESIFDD_WORKDIR
/
$KEY
.tar
$KEY
/latest.tar
# 2>&1 1>&3 3>&- | logger -t 'resifdd' -p local3.error; } 3>&1 1>&2 | logger -t 'resifdd' -p local3.info
RC
=
$?
if
[[
$RC
-ne
0
]]
;
then
log
"[
$KEY
] Error sending file to irods. The command was: iput --lfrestart
$RESIFDD_WORKDIR
/
$KEY
.lfrestart --retries 5 -T -K
$RESIFDD_WORKDIR
/
$KEY
.tar
$KEY
/latest.tar"
'error'
log
"[
$KEY
] Error sending file to irods. The command was: iput --lfrestart
$RESIFDD_WORKDIR
/
$KEY
.lfrestart --retries 5 -T -K
-f
$RESIFDD_WORKDIR
/
$KEY
.tar
$KEY
/latest.tar"
'error'
log
"[
$KEY
] Rolling back from
$KEY
/previous.tar to
$KEY
/latest.tar"
# Roll back
irm
-f
$KEY
/latest.tar
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment