Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Created December 8, 2015 02:08
Show Gist options
  • Save IQAndreas/d7f47fc719289aa12196 to your computer and use it in GitHub Desktop.
Save IQAndreas/d7f47fc719289aa12196 to your computer and use it in GitHub Desktop.
Cleanup "worthless" files from Windows backups
#!/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