Last active
August 21, 2024 13:22
-
-
Save apfelchips/b320cf445002fdd23f6ab1fbe296ac5b to your computer and use it in GitHub Desktop.
Backup / Sync exclusion patterns
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
// https://docs.syncthing.net/users/ignoring | |
// (?d) prefix to allow deletion of ignored files | |
// (?i) prefix makes the matching case insensitive | |
// echo #include .stignore_synced >> .stignore | |
(?d)(?i).Trash | |
(?d).DS_Store | |
._* | |
(?d)(?i)Thumbs.db | |
System Volume Information/ | |
*.part | |
.thumbnails | |
*.trashed |
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
# src: https://gist.github.com/apfelchips/b320cf445002fdd23f6ab1fbe296ac5b | |
# https://github.com/borgbase/vorta | |
# https://borgbackup.readthedocs.io/en/stable/usage/help.html#borg-help-patterns | |
# https://manpages.debian.org/bookworm/borgbackup/borg-patterns.1.en.html#Fnmatch | |
# https://github.com/borgbase/vorta/issues/907 | |
# paths beginning with / will match absolutely | |
# excludes (this file) use fm: matching by default --> https://docs.python.org/3/library/fnmatch.html | |
# patternfiles use sh: by default --> test: for match in /Users/*/Desktop/**/findme.txt; do echo "${match}"; done | |
# example for case insensitive match re:(?i)^/somedir/ --> test: https://pythonium.net/regex | |
# probably unncessary data | |
sh:/Users/*/Downloads/ | |
sh:/Users/*/ports/ | |
sh:/Users/*/Pictures/ingest/ | |
# Caches + Junk | |
*/.DS_Store | |
*/.Spotlight-V100/ | |
*/.TemporaryItems/ | |
*/.cache/ | |
*/.Cache/ | |
*/.caches/ | |
*/.Caches/ | |
sh:/Users/*/Library/**/cache/ | |
sh:/Users/*/Library/**/Cache/ | |
sh:/Users/*/Library/**/caches/ | |
sh:/Users/*/Library/**/Caches/ | |
*/.trash/ | |
*/.Trash/ | |
*/.trashes/ | |
*/.Trashes/ | |
# temp files / lock files | |
*.sqlite-wal | |
*.sqlite-shm | |
*.db-wal | |
*.db-shm | |
# misc caches | |
sh:/Users/*/Library/**/*.lock | |
sh:/Users/*/Library/**/tmp/ | |
sh:/Users/*/Library/**/CacheStorage/ | |
sh:/Users/*/Library/**/CachedData/ | |
sh:/Users/*/Library/**/CachedExtensionVSIXs/ | |
sh:/Users/*/Library/**/CachedProfilesData/ | |
sh:/Users/*/Library/**/Code Cache/ | |
sh:/Users/*/Library/**/DawnCache/ | |
sh:/Users/*/Library/**/DawnWebGPUCache/ | |
sh:/Users/*/Library/**/GraphiteDawnCache/ | |
sh:/Users/*/Library/**/GrShaderCache/ | |
sh:/Users/*/Library/**/GPUCache/ | |
sh:/Users/*/Library/**/ShaderCache/ | |
sh:/Users/*/Library/**/component_crx_cache/ | |
# macOS excludes | |
sh:/Users/*/Library/Logs/ | |
sh:/Users/*/Library/Metadata/ | |
sh:/Users/*/Library/Assistant/ | |
sh:/Users/*/Library/Suggestions/ | |
sh:/Users/*/Library/IdentityServices/ | |
sh:/Users/*/Library/Saved?Application?State/ | |
sh:/Users/*/Library/Application?Support/com.apple.spotlight/ | |
sh:/Users/*/Library/com.apple.mobileAssetDesktop/ | |
sh:/Users/*/Library/Group?Containers/group.com.apple.secure-control-center-preferences/ | |
sh:/Users/*/Library/Metadata/CoreSpotlight/NSFileProtectionCompleteUnlessOpen/ | |
# Virtualization / Wine | |
*.vmwarevm | |
*.utm | |
sh:/Users/*/Library/Containers/com.isaacmarovitz.Whisky/ | |
# AI Models | |
*.gguf | |
# Application specific | |
sh:/Users/*/.vscode/ | |
sh:/Users/*/.vscode-server/ | |
sh:/Users/*/.thumbnails/ | |
sh:/Users/*/Library/Arduino/*/packages/ | |
sh:/Users/*/Library/Arduino/*/staging/ | |
# Brave | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*.pma | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*/CURRENT | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*/LOCK | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*/LOG | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*/LOG.old | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/*/MANIFEST-* | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/BraveWallet/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/CertificateRevocation/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/Extensions/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/IndexedDB/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/Sync/Users/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/Web Applications/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/commerce_subscription_db/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Default/shared_proto_db/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Greaselion/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/SSLErrorAssistant/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/Webstore Downloads/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/WidevineCdm/ | |
sh:/Users/*/Library/Application?Support/BraveSoftware/Brave-Browser/component_crx_cache/ | |
# Firefox / Floorp | |
sh:/Users/*/Library/Application?Support/F*/Crash Reports/ | |
sh:/Users/*/Library/Application?Support/F*/Pending Pings/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/AlternateServices.bin | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/SiteSecurityServiceState.bin | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/addonStartup.json.lz4 | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/bookmarkbackups/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/crashes/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/datareporting/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/favicons.sqlite | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/formhistory.sqlite | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/gmp-* | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/ls-archive.sqlite | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/minidumps/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/permanent/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/personality-provider/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/security_state/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/serviceworker.txt | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/sessionstore-backups/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/storage/to-be-removed/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/storage/default/http/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/storage/default/moz-extension+++76e0cfa2-e7bf-4cd0-b5df-11395d0be1c0/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/storage/default/moz-extension+++f655b759-3574-7540-886f-6736d9ec8f4c/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/temporary/ | |
sh:/Users/*/Library/Application?Support/F*/Profiles/**/xulstore.json | |
# Thunderbird | |
sh:/Users/*/Library/Application?Support/Thunderbird/Crash Reports/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Pending Pings/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/AlternateServices.bin | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/SiteSecurityServiceState.bin | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/addonStartup.json.lz4 | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/bookmarkbackups/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/crashes/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/datareporting/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/favicons.sqlite | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/formhistory.sqlite | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/gmp-* | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/ls-archive.sqlite | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/minidumps/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/permanent/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/personality-provider/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/security_state/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/serviceworker.txt | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/sessionstore-backups/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/storage/default/http/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/temporary/ | |
sh:/Users/*/Library/Application?Support/Thunderbird/Profiles/*/xulstore.json | |
sh:/Users/*/Library/**/Bitdefender?Virus?Scanner/antivirus.bundle/ | |
sh:/Users/*/Library/Application?Support/Signal/ | |
sh:/Users/*/Library/Application?Support/CrashReporter/ | |
# Game data | |
sh:/Users/*/Games/Heroic/ | |
sh:/Users/*/Games/SteamGamedata/ | |
#sh:/Users/*/Games/**/*-?ROMs/ | |
#sh:/Users/*/Games/**/*-?Firmware/ | |
sh:/Users/*/Library/Application?Support/com.isaacmarovitz.Whisky/ | |
sh:/Users/*/Library/Application?Support/Steam/ | |
# Minecraft | |
sh:/Users/*/Library/Application?Support/minecraft/assets/ | |
sh:/Users/*/Library/Application?Support/minecraft/libraries/ | |
sh:/Users/*/Library/Application?Support/minecraft/runtime/ | |
# node stuff | |
*/node_modules/ | |
sh:/Users/*/.npm/ | |
# python stuff | |
*.pyc | |
*.pyo | |
*/__pycache__/ | |
*/.virtualenvs/ | |
*/.venv/ | |
# rust stuff | |
**/.cargo/ | |
**/.rustup/ | |
**/.local/share/mise/ | |
**/.local/share/cargo/ | |
sh:/Users/*/.rustup/ | |
sh:/Users/*/.config/rustup/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment