Created
October 7, 2009 19:29
-
-
Save dennyhalim/204345 to your computer and use it in GitHub Desktop.
lftp scripting
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
open ftp.someserver.com | |
user username,password | |
mirror /remote/folder /local/folder/ | |
exit | |
# execute this using | |
# lftp -f lftp-backup.txt |
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
# debug | |
slot A | |
open ftp://<user>:<pass>@ftp.blah.org/~ | |
open obsd37root | |
mirror Changelogs slot:A | |
exit | |
# http://tutorials.papamike.ca/pub/lftp.html#scripts | |
# open -u <user>,<pass> -p 1979 <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
open ftp.someserver.com | |
user username,password | |
mirror -R /local/folder /remote/folder/ | |
exit | |
# execute this using | |
# lftp -f lftp-restore.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment