ftp-action/entrypoint.sh

18 lines
614 B
Bash
Raw Normal View History

2019-11-17 01:45:24 +08:00
#!/bin/sh -l
2019-09-05 04:29:00 +08:00
2020-04-13 02:44:45 +08:00
# 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"
2020-04-13 04:54:13 +08:00
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;
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;
open $INPUT_HOST
user $INPUT_USER $INPUT_PASSWORD
mirror -v -P 5 -R $INPUT_LOCALDIR $INPUT_REMOTEDIR;
quit
"