Skip to content

Instantly share code, notes, and snippets.

@marksharrison
Created September 3, 2019 10:00
Show Gist options
  • Save marksharrison/ec7646f9539a770f2e86b53c7fc7d309 to your computer and use it in GitHub Desktop.
Save marksharrison/ec7646f9539a770f2e86b53c7fc7d309 to your computer and use it in GitHub Desktop.
Syncthing global ignore file
// .stglobalignore
// Syncthing Ignore Patterns - https://docs.syncthing.net/users/ignoring.html#patterns:
// Useful .stignore Patterns - https://goo.gl/DVHI1h
// Usage: Add the line below to all .stignore files for each Syncthing node
// #include .stglobalignore
// Incomplete Downloads
// Firefox downloads
*.part
// Chrom(ium|e) downloads
*.crdownload
// Transmission downloads
*.part
// Temporary/Backup Files
*~
.*.swp
// OS-generated files (linux)
.directory
.Trash-*
// OS-generated files (macOS)
.DS_Store
.AppleDouble
.LSOverride
// Icon must end with two \r
Icon
// Thumbnails (metadata)
._*
// Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.localized
// Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
// iCloud temp files
.iCloud*
// OS-generated files (Windows)
// Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
// Dump file
*.stackdump
// Folder config file
[Dd]esktop.ini
// Recycle Bin used on file shares
$RECYCLE.BIN/
// Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
// Windows shortcuts
*.ln
// Microsoft Office temp files
(?d)~*
// BTSync files
.sync
*.bts
*.!Sync
.SyncID
.SyncIgnore
.SyncArchive
*.SyncPart
*.SyncTemp
*.SyncOld
// Synology files
@eaDir
// Syncthing files
.stignore
.stfolder
// vim swap files
(?d)*.*.sw[a-p]
@fmarkos
Copy link

fmarkos commented Nov 10, 2023

In windows I had a lot of synced folders in the same subfolder and I added
#include ..\..\..\..\..\.stglobalignore to all of the .stignore files.
so I can keep one .stglobalignore for all those folders. (restart syncthing after the change)

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