# Useful .stignore Patterns

**URL:** https://forum.syncthing.net/t/useful-stignore-patterns/1175
**Category:** Howto
**Created:** [October 17, 2014, 4:14am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175 "2014-10-17T04:14:30Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Cyphase](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cyphase/32/526_2.png) [@Cyphase](https://forum.syncthing.net/u/Cyphase)
#### Post date: [March 27, 2015, 4:14am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/21 "2015-03-27T04:14:16Z")

</div>

> [@robsonsobral](#):
>
> Hi! Thanks for your initiative of a default ignore file, @Cyphase!

You’re welcome! Almost all of the activity has been in the last few days; I guess there are a lot more people here than there were in mid-October 2014 😄.

> [@robsonsobral](#):
>
> May I suggest you to add LibreOffice temp files?
> 
> LibreOffice creates files like .~lock.filename.ext# while you’re editing a document and these files are being synced.

Are you sure you don’t want those synced? They’re there to try to prevent multiple people from editing a file at the same time. Sure, if you’re the only person on all the peers, that’s not much of an issue (unless you leave it open/unsaved on one machine while trying to open it on another). But if you’re syncing between multiple people, it could be very useful. Plus, they’re very small files, just describing who has the document open for editing, so they aren’t causing a lot of churn.

Thoughts?

> [@robsonsobral](#):
>
> Did you gave it up on @eaDir folders?

No; I was waiting for an answer on my question about Synology devices, but then I forgot 😛. But either way, `@eaDir` should be there.

> [@robsonsobral](#):
>
> @Cyphase, shouldn’t you change “Pulse” back to “Syncthing” on your sample file?

Ah yes 😄. I fixed the link, but forgot the text.

Thanks!

---

<div class="post-metadata">

### Author: ![xHN35RQ](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/x/50afbb/32.png) [@xHN35RQ](https://forum.syncthing.net/u/xHN35RQ)
#### Post date: [March 27, 2015, 4:22am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/22 "2015-03-27T04:22:39Z")

</div>

> [@Cyphase](#):
>
> guess there are a lot more people here than there were in mid-October 2014

There are indeed, that’s a fantastic thing! Thank you for making this useful list!

@robsonsobral I think transferring lock files for LibreOffice makes sense, especially if you’re using inotify. This prevents document over-writing with 2 users writing to the same file.

Are you seeing a lot of file churn with LibreOffice temp files?

---

<div class="post-metadata">

### Author: ![robsonsobral](https://forum.syncthing.net/user_avatar/forum.syncthing.net/robsonsobral/32/863_2.png) [@robsonsobral](https://forum.syncthing.net/u/robsonsobral)
#### Post date: [March 27, 2015, 4:33am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/23 "2015-03-27T04:33:50Z")

</div>

Ok, guys! You’re both right! Let’s keep the lock files free from chains!

* * *

@Cyphase, you can improve the comment on `@eaDir` folders. They are used for thumbnail files associated with media services on Synology. (Meaning: the Synology version of `Thumbs.db`.)

---

<div class="post-metadata">

### Author: ![xHN35RQ](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/x/50afbb/32.png) [@xHN35RQ](https://forum.syncthing.net/u/xHN35RQ)
#### Post date: [March 27, 2015, 4:37am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/24 "2015-03-27T04:37:36Z")

</div>

I was going to mention another option is @Cyphase could include the LO temp files if you’re seeing a problem with them, but include a warning as to the importance of them.

---

<div class="post-metadata">

### Author: ![zukoo](https://forum.syncthing.net/user_avatar/forum.syncthing.net/zukoo/32/891_2.png) [@zukoo](https://forum.syncthing.net/u/zukoo)
#### Post date: [March 27, 2015, 7:41am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/25 "2015-03-27T07:41:08Z")

</div>

> [@Cyphase](#):
>
> Is it \*.!sync or \*.!Sync?

I double checked it is `*.!sync`

---

<div class="post-metadata">

### Author: ![robsonsobral](https://forum.syncthing.net/user_avatar/forum.syncthing.net/robsonsobral/32/863_2.png) [@robsonsobral](https://forum.syncthing.net/u/robsonsobral)
#### Post date: [March 27, 2015, 9:48am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/26 "2015-03-27T09:48:46Z")

</div>

Thanks, @xHN35RQ. There’s no need. I’m fine! You made an excellent point on them.

---

<div class="post-metadata">

### Author: ![stoofvlees](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@stoofvlees](https://forum.syncthing.net/u/stoofvlees)
#### Post date: [March 28, 2015, 6:56pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/27 "2015-03-28T18:56:30Z")

</div>

> [@Cyphase](#):
>
> I’ve never used a Synology device, but from a bit of searching it looks like the \*@SynoResource files are all in the @eaDir directories. Is that correct? If so, just adding @eaDir would be enough.

You are right, excluding only @eaDir does the trick.

---

<div class="post-metadata">

### Author: ![May2002](https://forum.syncthing.net/user_avatar/forum.syncthing.net/may2002/32/1200_2.png) [@May2002](https://forum.syncthing.net/u/May2002)
#### Post date: [March 28, 2015, 10:21pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/28 "2015-03-28T22:21:16Z")

</div>

Hi, I’ve got a naive question, sorry for that: How do you create the .stglobalignore file on windows? Even by renaming a copy of the .stignore file the system keeps thinking that stglobalignore is the extension and prompting me to enter a filename…

Thank you!!!

---

<div class="post-metadata">

### Author: ![robsonsobral](https://forum.syncthing.net/user_avatar/forum.syncthing.net/robsonsobral/32/863_2.png) [@robsonsobral](https://forum.syncthing.net/u/robsonsobral)
#### Post date: [March 28, 2015, 10:58pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/29 "2015-03-28T22:58:50Z")

</div>

To create a file without a name, just an extension, is tricky on windows, but not so hard.

Try:

```
.filename.

```

Windows will remove the last dot and you’ll get:

```
.filename
```

---

<div class="post-metadata">

### Author: ![robsonsobral](https://forum.syncthing.net/user_avatar/forum.syncthing.net/robsonsobral/32/863_2.png) [@robsonsobral](https://forum.syncthing.net/u/robsonsobral)
#### Post date: [March 28, 2015, 11:05pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/30 "2015-03-28T23:05:11Z")

</div>

I’m sorry for the dumb question. Where should I save the `.stgloablignore`?

* * *

I don’t know of anybody trying to sync a folder which is also on Dropbox, but… DropBox files:

- `.dropbox`
- `.dropbox.attr`

One pattern should be enough for both.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [March 28, 2015, 11:32pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/31 "2015-03-28T23:32:52Z")

</div>

There is no `.stglobalignore`

---

<div class="post-metadata">

### Author: ![May2002](https://forum.syncthing.net/user_avatar/forum.syncthing.net/may2002/32/1200_2.png) [@May2002](https://forum.syncthing.net/u/May2002)
#### Post date: [March 29, 2015, 10:02am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/32 "2015-03-29T10:02:35Z")

</div>

From what I understand we can just put it in the synced folder so that it “travels” with the regular files to the other peers. There, since the .stignore file has been manually set to refer to .stglobalignore (cf first post), it will be taken into account in due time. So probably the name of the file doesn’t matter, provided all the peers have the same reference in their .stignore files for the given folder. Or else i did not understand anything and please correct me!

---

<div class="post-metadata">

### Author: ![robsonsobral](https://forum.syncthing.net/user_avatar/forum.syncthing.net/robsonsobral/32/863_2.png) [@robsonsobral](https://forum.syncthing.net/u/robsonsobral)
#### Post date: [March 29, 2015, 6:19pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/33 "2015-03-29T18:19:14Z")

</div>

I guess we are both confuse. Maybe… Who knows? WTH is `.stglobalignore`? Who killed Laura Palmer?

---

<div class="post-metadata">

### Author: ![srosa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@srosa](https://forum.syncthing.net/u/srosa)
#### Post date: [March 31, 2015, 7:36am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/34 "2015-03-31T07:36:33Z")

</div>

For linux users

- .directory
- Trash-\*

---

<div class="post-metadata">

### Author: ![Zillode](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/z/c67d28/32.png) [@Zillode](https://forum.syncthing.net/u/Zillode)
#### Post date: [March 31, 2015, 8:29am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/35 "2015-03-31T08:29:30Z")

</div>

> [@May2002](#):
>
> There, since the .stignore file has been manually set to refer to .stglobalignore (cf first post), it will be taken into account in due time. So probably the name of the file doesn’t matter, provided all the peers have the same reference in their .stignore files for the given folder.

This is correct.

_(Discourse won’t let me post something smaller than 20 chars so please ignore this line)_

---

<div class="post-metadata">

### Author: ![Cyphase](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cyphase/32/526_2.png) [@Cyphase](https://forum.syncthing.net/u/Cyphase)
#### Post date: [April 2, 2015, 11:15pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/36 "2015-04-02T23:15:04Z")

</div>

> [@AudriusButkevicius](#):
>
> There is no .stglobalignore

> [@May2002](#):
>
> So probably the name of the file doesn’t matter, provided all the peers have the same reference in their .stignore files for the given folder. Or else i did not understand anything and please correct me!

> [@robsonsobral](#):
>
> I guess we are both confuse. Maybe… Who knows? WTH is .stglobalignore?

Naming it .stglobalignore is just a convention. You can name it whatever you want, as long as it’s included from your .stignore file.

> [@robsonsobral](#):
>
> Who killed Laura Palmer?

Spoiler alert!

---

<div class="post-metadata">

### Author: ![Cyphase](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cyphase/32/526_2.png) [@Cyphase](https://forum.syncthing.net/u/Cyphase)
#### Post date: [April 2, 2015, 11:22pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/37 "2015-04-02T23:22:52Z")

</div>

I think you mean `.Trash-*` 😄. But what’s `.directory`?

---

<div class="post-metadata">

### Author: ![srosa](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@srosa](https://forum.syncthing.net/u/srosa)
#### Post date: [April 3, 2015, 12:41am UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/38 "2015-04-03T00:41:12Z")

</div>

Oops - yes it should have been .Trash-\*.

.directory may be a KDE thing. It is a meta data file that KDE apps write to (things like whether dot files are visible, the icon for that folder, etc), so every directory ends up with one. But it shouldn’t be synced.

---

<div class="post-metadata">

### Author: ![dinosore](https://forum.syncthing.net/user_avatar/forum.syncthing.net/dinosore/32/4085_2.png) [@dinosore](https://forum.syncthing.net/u/dinosore)
#### Post date: [April 3, 2015, 4:00pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/40 "2015-04-03T16:00:09Z")

</div>

😇 😇

---

<div class="post-metadata">

### Author: ![May2002](https://forum.syncthing.net/user_avatar/forum.syncthing.net/may2002/32/1200_2.png) [@May2002](https://forum.syncthing.net/u/May2002)
#### Post date: [April 4, 2015, 8:37pm UTC](https://forum.syncthing.net/t/useful-stignore-patterns/1175/41 "2015-04-04T20:37:21Z")

</div>

If there is a QNAP NAS client somewhere, ignoring the .@\_thumb directory could be useful too…

[Previous page](https://forum.syncthing.net/t/useful-stignore-patterns/1175.md?page=1)

[Next page](https://forum.syncthing.net/t/useful-stignore-patterns/1175.md?page=3)
