14 lines
396 B
Bash
Executable File
14 lines
396 B
Bash
Executable File
#!/bin/sh -l
|
|
|
|
lftp ${INPUT_HOST} -u ${INPUT_USER},${INPUT_PASSWORD} -e "
|
|
set net:timeout 60;
|
|
set net:max-retries 20;
|
|
set net:reconnect-interval-multiplier 2;
|
|
set net:reconnect-interval-base 5;
|
|
set ftp:ssl-force $INPUT_FORCESSL;
|
|
set sftp:auto-confirm yes;
|
|
set ssl:verify-certificate $INPUT_FORCESSL;
|
|
mirror -v -P 5 -R -n -L -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR;
|
|
quit
|
|
"
|