Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transfer Tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Clinbio
SPSP NG
Transfer Tool
Merge requests
!6
Version 1.6.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Version 1.6.0
dev
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Version 1.6.0
Dillenn Terumalai
requested to merge
dev
into
master
Aug 31, 2020
Overview
0
Commits
1
Pipelines
1
Changes
1
Changelog
[Security] - Removed transfer command
[Bug] - Replace server address with external DNS (spsp.sib.swiss)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
916ae598
1 commit,
Aug 31, 2020
1 file
+
3
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
spsp
+
3
−
14
View file @ 916ae598
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,7 +2,7 @@
# SPSP transfer-tool is developed and maintained by SIB. For more information, please contact spsp-support@sib.swiss
VERSION
=
"1.
5
.0"
# bumped to support spsp --help, spsp --version
VERSION
=
"1.
6
.0"
# bumped to support spsp --help, spsp --version
# Define colors that are used in the help screen
@@ -84,12 +84,6 @@ compressFolder() {
tar
-czf
$1
.tar.gz
$1
}
transferFile
()
{
REMOTE_PATH
=
$1
shift
1
# printf "put $@" | sftp -q "${SFTP_URL}$2" 1> /dev/null
for
f
in
$@
;
do
echo
put
"
$f
"
| sftp
-q
-b-
"
${
SFTP_URL
}
$REMOTE_PATH
"
1> /dev/null
;
done
}
hashFile
()
{
$SHACMD
"
$1
"
>
"
$1
"
.sha256
@@ -448,7 +442,7 @@ autoMode() {
for
FILE
in
*
.
*
;
do
if
[
-f
"
$FILE
"
]
;
then
echo
put
"
$FILE
"
| sftp
-q
-b-
"
${
SFTP_URL
}
/
$BACTERIA
"
1> /dev/null
echo
put
"
$FILE
"
| sftp
-q
-b-
-o
LogLevel
=
QUIET
"
${
SFTP_URL
}
/
$BACTERIA
"
1> /dev/null
((
SUCCESS
=
SUCCESS+1
))
echo
"[
$(
date
+
"%T"
)
] local.SUCCESS:
$FILE
has been successfully transferred to the remote server"
>>
"../../
$LOGFILE
"
if
[[
"
$*
"
==
*
--no-archive
*
]]
||
[[
"
$*
"
==
*
-NA
*
]]
;
then
@@ -537,7 +531,7 @@ if [ $# -gt 0 ]; then
if
[[
$REPLY
=
~ ^[Yy]
$
]]
then
echo
"ID=
$identifier
"
>
.env
echo
'HOST=spsp
-sftp.vital-it.ch
'
>>
.env
echo
'HOST=spsp
.sib.swiss
'
>>
.env
echo
'SFTP_URL=${ID}@${HOST}:data'
>>
.env
answer
=
true
else
@@ -576,11 +570,6 @@ if [ $# -gt 0 ]; then
elif
[
"
$1
"
==
"cleanup"
]
;
then
cleanup
exit
0
elif
[
"
$1
"
==
"transfer"
]
;
then
shift
1
transferFile
"
$@
"
exit
0
else
message
=
"Command does not exist, please check the help
\n
${
COL_LGREEN
}
./spsp help
${
COL_RESET
}
"
Loading