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
858aefda
Commit
858aefda
authored
Jul 05, 2019
by
Jonathan Schaeffer
Browse files
Debug 2
parent
e4545671
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/datadump.sh
View file @
858aefda
...
...
@@ -46,7 +46,7 @@ fi
# Checking IRODS environment
if
[[
!
-
r
~/.irods/irodsA
]]
;
then
if
[[
!
-
f
~/.irods/irodsA
]]
;
then
log
"The irods scrambled password file is not present. Please run iinit and provide the password"
exit
1
fi
...
...
@@ -61,10 +61,10 @@ cd $SNAPSHOT_DIR
for
dir
in
$(
find
.
-maxdepth
3
-type
d
)
;
do
IFS
=
'/'
read
-r
-a
YNS
<<<
$dir
[
!
${#
distro
[@]
}
-eq
3
]
&&
continue
YEAR
=
YNS[0]
NETWORK
=
YNS[1]
STATION
=
YNS[2]
[
!
${#
YNS
[@]
}
-eq
3
]
&&
continue
YEAR
=
${
YNS
[0]
}
NETWORK
=
${
YNS
[1]
}
STATION
=
${
YNS
[2]
}
KEY
=
$YEAR_$NETWORK_$STATION
log
"Going to tar data from
$KEY
"
tar
cf
$RESIFDD_WORKDIR
/
$KEY
.tar
$dir
...
...
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