# Send only from a Readonly filesystem.

**URL:** https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603
**Category:** Support
**Created:** [December 27, 2018, 5:16pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603 "2018-12-27T17:16:11Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![jj-uk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jj-uk](https://forum.syncthing.net/u/jj-uk)
#### Post date: [December 27, 2018, 5:16pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/1 "2018-12-27T17:16:11Z")

</div>

I’ve tried to set up several ‘send only’ folders.

The folders are different shares on my unRAID server. (Syncthing running in a docker).

To do this, I mount the server root into syncthing as ‘/sync’ (readonly)

It will send my data to another offsite server.

I don’t want to allow rw access because that’s very bad practice.

Why does syncthing require rw access? For send only, any database files syncthing needs could be stored in /config.

---

<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: [December 27, 2018, 7:50pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/2 "2018-12-27T19:50:16Z")

</div>

Mounting server root is insane, it has nested never ending folder structrues exposed via virtual filesystems etc.

Syncthing needs to create a marker file to be able o distinguish between a mount failing and everything being deleted.

You can rename marker name in advanced settings and point it at some well known file or directory that always exists.

---

<div class="post-metadata">

### Author: ![jj-uk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jj-uk](https://forum.syncthing.net/u/jj-uk)
#### Post date: [December 27, 2018, 9:45pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/3 "2018-12-27T21:45:41Z")

</div>

I can’t see another way but to mount root into the containers filesystem, then create a ‘send-only folder’ for each ‘share’ within it that I’d like to duplicate on the receiver server. A share is just a folder somewhere within root.

I’ll take a look at advanced settings to change the marker file location - thanks.

With send folders: Can syncthing not check if a folder is mounted, verses if a folder is empty? If the source folder is missing (not mounted), then that would be an error and nothing should be sync’ed, verses if it exists but is empty, then the destination should be sync’ed (emptied) to match.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [December 27, 2018, 9:51pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/4 "2018-12-27T21:51:38Z")

</div>

> [@jj-uk](#):
>
> Can syncthing not check if a folder is mounted, verses if a folder is empty?

This is what the “marker” is for. Its presence indicates the folder is mounted and healthy.

---

<div class="post-metadata">

### Author: ![jj-uk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jj-uk](https://forum.syncthing.net/u/jj-uk)
#### Post date: [December 28, 2018, 10:06am UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/5 "2018-12-28T10:06:53Z")

</div>

So the marker must be in the root of the folder that’s being sync’ed? I can’t allow rw access to my data.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [December 28, 2018, 10:11am UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/6 "2018-12-28T10:11:02Z")

</div>

The point of being able to chose the name is that you can point to something that already exists.

---

<div class="post-metadata">

### Author: ![jj-uk](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/j/54ee81/32.png) [@jj-uk](https://forum.syncthing.net/u/jj-uk)
#### Post date: [December 28, 2018, 10:25am UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/7 "2018-12-28T10:25:56Z")

</div>

Ahhhh… I see. So I can manually create the required file and/or choose a name in advanced settings.

Syncthing doesn’t need to create the file it’s self. Correct?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [December 28, 2018, 12:18pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/8 "2018-12-28T12:18:21Z")

</div>

Correct.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [January 27, 2019, 12:18pm UTC](https://forum.syncthing.net/t/send-only-from-a-readonly-filesystem/12603/9 "2019-01-27T12:18:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
