Created
June 13, 2013 07:01
-
-
Save maerlyn/5771738 to your computer and use it in GitHub Desktop.
dropbox backup
This file contains 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
#!/bin/bash | |
find /home/maerlyn/Dropbox/megosztott/jegyzetek\ -\ uj/ -name \*conflicted\* -exec rm {} \; | |
find /home/maerlyn/Dropbox/megosztott/jegyzetek\ -\ uj/ -size 0 -exec rm {} \; | |
find /home/maerlyn/Dropbox/megosztott/ -name .picasa.ini -exec rm {} \; | |
find /home/maerlyn/Dropbox/megosztott/jegyzetek\ -\ uj/ -name \*~ -exec rm {} \; | |
find /home/maerlyn/Dropbox/megosztott/jegyzetek\ -\ uj/ -name \*.o -exec rm {} \; | |
tar -cf /home/maerlyn/dropbox-backup/`date +%Y-%m-%d`.tar /home/maerlyn/Dropbox/megosztott/jegyzetek\ -\ uj/* | |
cd /home/maerlyn/dropbox-backup | |
ls -1 | sort -r | tail -n+6 | xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment