Last active
February 20, 2019 22:45
-
-
Save erikerlandson/ae8a44cadd73866b796c0736f7a0b87d to your computer and use it in GitHub Desktop.
rsync backup, excludes, git repo cleaning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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