sftp-mirror-action/entrypoint.sh

6 lines
221 B
Bash
Raw Normal View History

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