ftp-action/entrypoint.sh
Tim Bernhard ba35a37f8c
Improve stability options
* 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>
2020-08-24 17:11:33 +02:00

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
"