Skip to content

Instantly share code, notes, and snippets.

@mchirico
Created November 30, 2014 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchirico/ccbdac6b1a50f8fb8511 to your computer and use it in GitHub Desktop.
Save mchirico/ccbdac6b1a50f8fb8511 to your computer and use it in GitHub Desktop.
Rsync public bash script
#!/bin/bash
#scp -r /Users/mchirico/Dropbox/webDev/Publish/* mAW:/var/www/html
cp /Users/mchirico/How_to_Linux_and_Open_Source.txt /Users/mchirico/Dropbox/webDev/Publish/
rsync -Lae ssh /Users/mchirico/Dropbox/webDev/Publish/ mAW:/var/www/html
rm -rf /Users/mchirico/Dropbox/webDev/Publish/*
cd /Users/mchirico/Dropbox/webDev/WebSiteDialog
git add Mike\ Chirico\'s\ Blog.rw6/
git commit -a -m 'Update after pub'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment