sftp-mirror-action/entrypoint.sh

5 lines
192 B
Bash
Raw Normal View History

2023-12-31 15:16:35 +00:00
#!/bin/sh
set -e
lftp -e "set sftp:auto-confirm yes; open -u $INPUT_SFTP_USER,$INPUT_SFTP_PW $SFTP_INPUT_HOST; mirror -v --no-perms --delete --reverse $INPUT_SOURCE $INPUT_DESTINATION; quit"