├── .stglobalignore ├── .stignore ├── LICENSE └── README.md /.stglobalignore: -------------------------------------------------------------------------------- 1 | // ╔═══════════════════════════════════╗ 2 | // ║ CHECK IT AGAIN BEFORE YOU USE IT! ║ 3 | // ╚═══════════════════════════════════╝ 4 | // .stglobalignore 5 | 6 | 7 | // ╔══════════════════════════════════╗ 8 | // ║ Operating system generated files ║ 9 | // ╚══════════════════════════════════╝ 10 | // ┌─────────────┐ 11 | // │ Apple macOS │ 12 | // └─────────────┘ 13 | (?d).DS_Store 14 | (?d).localized 15 | (?d)._* 16 | (?d).Icon* 17 | (?d).fseventsd 18 | (?d).Spotlight-V100 19 | (?d).DocumentRevisions-V100 20 | (?d).TemporaryItems 21 | (?d).Trashes 22 | (?d).Trash-1000 23 | (?d).iCloud 24 | 25 | // ┌──────────────────┐ 26 | // │ GNU/Linux & UN*X │ 27 | // └──────────────────┘ 28 | (?d).directory 29 | (?d).Trash-* 30 | 31 | // ┌───────────────────┐ 32 | // │ Microsoft Windows │ 33 | // └───────────────────┘ 34 | (?d)desktop.ini 35 | (?d)ehthumbs.db 36 | (?d)Thumbs.db 37 | (?d)$RECYCLE.BIN 38 | (?d)System Volume Information 39 | 40 | // ┌──────────┐ 41 | // │ QNAP QTS │ 42 | // └──────────┘ 43 | (?d).AppleDB 44 | (?d).@_thumb 45 | (?d).@__thumb 46 | 47 | // ┌──────────────┐ 48 | // │ Synology DSM │ 49 | // └──────────────┘ 50 | (?d)@eaDir 51 | 52 | 53 | // ╔═════════════════════════════╗ 54 | // ║ Application generated files ║ 55 | // ╚═════════════════════════════╝ 56 | // ┌─────────────────┐ 57 | // │ Adobe Lightroom │ 58 | // └─────────────────┘ 59 | *Previews.lrdata root-pixels.db 60 | 61 | // ┌─────────┐ 62 | // │ Dropbox │ 63 | // └─────────┘ 64 | .dropbox 65 | .dropbox.attr 66 | 67 | // ┌────────────────────────┐ 68 | // │ Firefox & Chrom(ium│e) │ 69 | // └────────────────────────┘ 70 | *.part 71 | *.crdownload 72 | 73 | // ┌──────────────────┐ 74 | // │ Microsoft Office │ 75 | // └──────────────────┘ 76 | ~* 77 | 78 | // ┌───────────────────────────┐ 79 | // │ Parallels Desktop for Mac │ 80 | // └───────────────────────────┘ 81 | .parallels-vm-directory 82 | 83 | // ┌──────────────┐ 84 | // │ Resilio Sync │ 85 | // └──────────────┘ 86 | .sync 87 | *.bts 88 | *.!Sync 89 | .SyncID 90 | .SyncIgnore 91 | .SyncArchive 92 | *.SyncPart 93 | *.SyncTemp 94 | *.SyncOld 95 | 96 | // ┌────────────────────────────┐ 97 | // │ Temporary and backup files │ 98 | // └────────────────────────────┘ 99 | *.temporary 100 | *.tmp 101 | *._mp 102 | *.old 103 | *.syd 104 | *.dir 105 | *.gid 106 | *.chk 107 | *.dmp 108 | *.nch 109 | .*.swp 110 | *~ 111 | 112 | // ┌─────┐ 113 | // │ Vim │ 114 | // └─────┘ 115 | *.*.sw[a-p] -------------------------------------------------------------------------------- /.stignore: -------------------------------------------------------------------------------- 1 | // .stignore 2 | 3 | #include .stglobalignore 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 M.Mono 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Syncthing Ignore Patterns 2 | If you use [Syncthing](https://syncthing.net/) and there are some files should not be synchronized to other devices, a file called .stignore can be created containing file patterns to ignore. The ```.stignore``` file must be placed in the root of the folder. The ```.stignore``` file itself will never be synced to other devices, although it can #include files (in our case is ```.stglobalignore``` file) that are synchronized between devices. All patterns are relative to the folder root. 3 | 4 | More Infos about ignore patterns from official syncthing website: [Syncthing ignore patterns](https://docs.syncthing.net/users/ignoring.html) 5 | 6 | --- 7 | 8 | ### There are two ways to use this ignore patterns function: 9 | 10 | * Just copy all ```.stglobalignore``` contents in to ```Folders``` ⇢ ```Edit``` ⇢ ```Ignore Patterns``` window 11 | 12 | or 13 | * Copy both ```.stignore``` and ```.stglobalignore``` directly into your folder root 14 | 15 | or 16 | 17 | * Paste following code into ```Folders``` ⇢ ```Edit``` ⇢ ```Ignore Patterns``` window and copy the ```.stglobalignore``` into folder root 18 | ``` 19 | // .stignore 20 | 21 | #include .stglobalignore 22 | ``` 23 | 24 | --- --------------------------------------------------------------------------------