Last active
December 30, 2018 22:08
-
-
Save tangoslee/6aabf618f3e793d2be5f1d2518935c12 to your computer and use it in GitHub Desktop.
Reverse mirror FTP in synology NAS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Add ~/.lftp/rc | |
# useFTP | |
# set ftp:ssl-allow off | |
# useSSL | |
# set ftp:ssl-protect-data true | |
# set ftp:ssl-force true | |
# set ftp:ssl-auth TLS | |
# set ssl:verify-certificate no | |
# | |
HOST=ftp.test.co | |
USER=test | |
PASS=test | |
LOCAL=ftp.test.co | |
REMOTE=/ | |
lftp -c "set ftp:ssl-allow off; open -u $USER,$PASS $HOST; lcd $LOCAL; cd $REMOTE; lpwd; mirror -R -c --parallel=1 --verbose" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment