Skip to content

Instantly share code, notes, and snippets.

@bolmaster2
Last active September 25, 2015 18:37
Show Gist options
  • Select an option

  • Save bolmaster2/966118 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

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