Back to lftp, better formatted

This commit is contained in:
Tim Bernhard 2020-04-12 22:54:13 +02:00
parent 55fedb1ed4
commit fb5622e46c
1 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,15 @@
# lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ftp:ssl-force $INPUT_FORCESSL; set ssl:verify-certificate false; mirror --reverse --continue --dereference --verbose=3 -P -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"
# switch directory instead of using ncftp "local_dir" parameter
# this way, the local_dir is not created too.
cd "$INPUT_LOCALDIR" || exit 2;
ncftpput -R -z -m -u "$INPUT_USER" -p "$INPUT_PASSWORD" "$INPUT_HOST" "$INPUT_REMOTEDIR" "."
lftp -e "
set net:timeout 5;
set net:max-retries 3;
set net:reconnect-interval-multiplier 1;
set net:reconnect-interval-base 5;
set ftp:ssl-force $INPUT_FORCESSL;
set ssl:verify-certificate $INPUT_FORCESSL;
open $INPUT_HOST
user $INPUT_USER $INPUT_PASSWORD
mirror -v -P 5 -R $INPUT_LOCALDIR $INPUT_REMOTEDIR;
quit
"