2019-11-17 01:45:24 +08:00
|
|
|
#!/bin/sh -l
|
2019-09-05 04:29:00 +08:00
|
|
|
|
2020-08-24 23:11:33 +08:00
|
|
|
lftp ${INPUT_HOST} -u ${INPUT_USER},${INPUT_PASSWORD} -e "
|
|
|
|
set net:timeout 60;
|
|
|
|
set net:max-retries 20;
|
|
|
|
set net:reconnect-interval-multiplier 2;
|
2020-04-13 04:54:13 +08:00
|
|
|
set net:reconnect-interval-base 5;
|
|
|
|
set ftp:ssl-force $INPUT_FORCESSL;
|
2020-04-14 17:31:49 +08:00
|
|
|
set sftp:auto-confirm yes;
|
2020-04-13 04:54:13 +08:00
|
|
|
set ssl:verify-certificate $INPUT_FORCESSL;
|
2020-08-24 23:11:33 +08:00
|
|
|
mirror -v -P 5 -R -n -L -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR;
|
2020-04-13 04:54:13 +08:00
|
|
|
quit
|
|
|
|
"
|