ftp-action/entrypoint.sh
2020-04-12 20:44:45 +02:00

8 lines
354 B
Bash
Executable File

#!/bin/sh -l
# 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"
ncftpput -R -z -u "$INPUT_USER" -p "$INPUT_PASSWORD" "$INPUT_HOST" "$INPUT_REMOTEDIR" "$INPUT_LOCALDIR"