Skip to content

Instantly share code, notes, and snippets.

@bolmaster2
Last active September 25, 2015 18:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bolmaster2/966118 to your computer and use it in GitHub Desktop.
Save bolmaster2/966118 to your computer and use it in GitHub Desktop.
FTP upload of files
#!/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
@bolmaster2
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment