Skip to content

Instantly share code, notes, and snippets.

@twlee79
Created October 25, 2018 10:21
Show Gist options
  • Save twlee79/af09e991b52d228005c3c1b79afbd5eb to your computer and use it in GitHub Desktop.
Save twlee79/af09e991b52d228005c3c1b79afbd5eb to your computer and use it in GitHub Desktop.
-*/~*
-*/del/
-*/_del/
-*/_del */
-*/desktop.ini
-*/Thumbs.db
-*/*.lnk
-*/*.tmp*
-$RECYCLE.BIN/
-System Volume Information/
-Users/John Doe/Documents/unwanted_directory/
+Users/John Doe/Documents/*
+Users/John Doe/Pictures/*
+Users/John Doe/Desktop/*
+Users/John Doe/another_wanted_directory/*
+Users/John Doe/
+Users/
+please_back_up_another_wanted_directory/*
-*
@twlee79
Copy link
Author

twlee79 commented Oct 25, 2018

New revision corrected to ensure files are correctly matched (and excluded) by top 7-8 patterns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment