Last active
September 25, 2015 18:37
-
-
Save bolmaster2/966118 to your computer and use it in GitHub Desktop.
FTP upload of files
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/bash | |
HOST="" | |
USER="" | |
PASS="" | |
LCD="./" | |
RCD="/path/to/remote/" | |
lftp -e "mirror --reverse \ | |
--delete \ | |
--verbose \ | |
--exclude-glob .sass-cache/ \ | |
--exclude-glob .gitignore \ | |
--exclude-glob .git/* \ | |
--exclude-glob .DS_Store \ | |
$LCD $RCD; bye;" -u $USER,$PASS $HOST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.mail-archive.com/lftp@uniyar.ac.ru/msg03505.html