Skip to content

Instantly share code, notes, and snippets.

@EpocSquadron
Created October 18, 2013 14:21
Show Gist options
  • Save EpocSquadron/7042272 to your computer and use it in GitHub Desktop.
Save EpocSquadron/7042272 to your computer and use it in GitHub Desktop.
An rsync snippet for syncing files from a non-git server without all the junk.
*.bak
*.diff
*.patch
*.md
*.err
*.orig
*.log
*.rej
*.swo
*.swp
*.vi
*~
*.sass-cache
.DS_Store
.htpasswds
._*
__MACOSX
.revision
Thumbs.db
.cache
.project
.settings
.tmproj
nbproject
*.sublime-project
*.sublime-workspace
_notes
dwsync.xml
*.komodoproject
.komodotools
*.esproj
*.espressostorage
*.rbc
.gitmodules
benchmarks
.git
.hg
.svn
.CVS
.idea
sitemap.xml
cache/*
images/sized/*
images/made/*
images/remote/*
_thumbs/*
rsync -zcrSLh --progress --exclude-from=.rsyncignore $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment