Skip to content

Instantly share code, notes, and snippets.

@erikerlandson
Last active February 20, 2019 22:45
Show Gist options
  • Save erikerlandson/ae8a44cadd73866b796c0736f7a0b87d to your computer and use it in GitHub Desktop.
Save erikerlandson/ae8a44cadd73866b796c0736f7a0b87d to your computer and use it in GitHub Desktop.
rsync backup, excludes, git repo cleaning
cd /home/eje/git
for f in $(ls -d */) ; do cd /home/eje/git/$f; git rev-parse --git-dir 2>/dev/null && git clean -fdx; done
.cache
.coursier
.bundle
.ccache
.config
.gradle
.mozilla
.rvm
.local
.minikube
media
logdemo
golang
miniconda2
oshinko
spark
analytics
.ivy2
.m2
.docker
.cups
.adobe
.gimp-*
.httpie
.ipynb_checkpoints
.ipython
.jupyter
.macromedia
.mozilla
.plotly
.subversion
.thumbnails
.uml
.w3m
.xchat2_save
.zoom
.zinc
Downloads
openshift.local.*
rsync -avzh --exclude-from /home/eje/rsync-exclude-list.txt /home/eje/ /run/media/eje/Elements/backups/eje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment