Skip to content

Instantly share code, notes, and snippets.

@vkartk
Created July 29, 2023 16:14
Show Gist options
  • Save vkartk/0cc26925153baed10c8dd4f6943edfc3 to your computer and use it in GitHub Desktop.
Save vkartk/0cc26925153baed10c8dd4f6943edfc3 to your computer and use it in GitHub Desktop.
A comprehensive .stignore file for Syncthing, excluding unnecessary files and directories during synchronization. Organized into categories, platform-specific exclusions included.
# Commonly ignored files and directories
.DS_Store
Thumbs.db
desktop.ini
# Temporary files
*.tmp
*.temp
*.swp
# Log files
*.log
*.log.*
*.txt~
# Cache and temporary directories
.cache/
.tmp/
temp/
tmp/
__pycache__/
# System and hidden files
.Spotlight-V100/
.Trashes/
.Trash-*/
.AppleDouble/
.fuse_hidden*/
# Package manager directories
node_modules/
vendor/
bower_components/
# IDE and editor files
.idea/
.vscode/
*.sublime*
# Compiled and binary files
*.class
*.o
*.obj
*.pyc
*.pyo
*.dll
*.exe
*.so
*.dylib
# Version control directories (Git, SVN, etc.)
.git/
.svn/
# Editor backup and swap files
*~
.*~
*#
.#*
*.swp
# Images and media files
*.jpg
*.jpeg
*.png
*.gif
*.bmp
*.ico
# Audio and video files
*.mp3
*.mp4
*.avi
*.mkv
*.mov
*.swf
# Font files
*.woff
*.ttf
*.eot
*.otf
# Archive files
*.zip
*.tar
*.rar
*.7z
# Backup files
*.bak
*.backup
*.old
*.orig
# Minified and map files
*.min.*
*.map
# Configuration and data files
*.csv
*.json
*.xml
*.psd
*.doc
*.docx
*.xls
*.xlsx
*.ppt
*.pptx
*.pdf
# Custom ignore patterns (add more based on your needs)
# Windows specific directories
$RECYCLE.BIN/
System Volume Information/
# Linux specific directories
# Add Linux specific directories here
# macOS specific directories
# Add macOS specific directories here
@vkartk
Copy link
Author

vkartk commented Jul 29, 2023

Comprehensive .stignore for Syncthing

This Gist contains a comprehensive .stignore file that can be used with the Syncthing application to specify which files and directories should be ignored during synchronization. The ignore list includes common patterns for temporary files, log files, cache directories, IDE/editor files, version control directories, system-specific files, and more.

The .stignore file is further organized into separate sections, including specific file types like images, audio/video, font files, archive files, backup files, and configuration/data files. It also includes custom ignore patterns to tailor the synchronization to your specific needs.

Additionally, separate sections for Windows-specific directories, Linux-specific directories, and macOS-specific directories are included to cater to different platforms, ensuring that platform-specific files are excluded from syncing accordingly.

By using this comprehensive .stignore file, you can fine-tune your Syncthing synchronization to exclude unwanted files, prevent accidental syncing of sensitive data, and improve the overall efficiency of your file synchronization process based on your operating system and specific use case.

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