mirror of
https://github.com/GenieTim/ftp-action.git
synced 2024-12-05 07:22:25 +08:00
ba35a37f8c
* Update Dockerfile by removing lefovers * Treat symbolic links as files, Ref: https://lftp.yar.ru/lftp-man.html * Keep in sync with fork source via GitHub Action * Update entrypoint.sh: more stable connections (more retries, longer timeout), only loading newer files (-n), loading symbolic links as files (-L) as well as specifically excluding the git directory (-x ^.git/$) (Co-)authored-by: Tomasz Trębski <kornicameister@gmail.com>
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
|
|
"
|