Created
December 8, 2015 02:08
-
-
Save IQAndreas/d7f47fc719289aa12196 to your computer and use it in GitHub Desktop.
Cleanup "worthless" files from Windows backups
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
#!/bin/bash | |
# Remove "worthless" Windows files from the backup | |
find . -name "Thumbs.db" -delete | |
find . -name "desktop.ini" -delete | |
# Remove empty directories | |
find . -type d -empty -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment