tannercollin / standardnotes-fs

Mount your Standard Notes as a filesystem.
GNU General Public License v3.0
148 stars 12 forks source link

Unable to create .* files #25

Closed alexkutsan closed 4 years ago

alexkutsan commented 4 years ago

Find out that virtual filesystem, that standartnotes-fs creating does not allow hidden files.

It does not allow to establish bidirectional synchronization with rsync or unison.

Error example from unison :

sync-server_1_997abd27259a | Error in copying locally:
sync-server_1_997abd27259a | Operation not permitted [open(/sn_notes/tags/day/.unison.2020-03-04.txt.6f3ba2960ddd2864b2859cf82acc1651.unison.tmp)]
sync-server_1_997abd27259a | [abort] Aborting line 1
sync-server_1_997abd27259a | Failed: Error in copying locally:
sync-server_1_997abd27259a | Operation not permitted [open(/sn_notes/tags/day/.unison.2020-03-04.txt.6f3ba2960ddd2864b2859cf82acc1651.unison.tmp)]
sync-server_1_997abd27259a | 100%  00:00 ETAFailed [tags/day/2020-03-04.txt]: Error in copying locally:
sync-server_1_997abd27259a | Operation not permitted [open(/sn_notes/tags/day/.unison.2020-03-04.txt.6f3ba2960ddd2864b2859cf82acc1651.unison.tmp)]
UNISON 2.48.4 finished propagating changes at 14:10:52.15 on 04 Mar 2020
Saving synchronizer statea | 100%  00:00 ETA
sync-server_1_997abd27259a | [update] Updating archives
sync-server_1_997abd27259a | [update] Saving archive in /root/.unison/sc4981c0ebae83fffec824e92fb29a7fc2
sync-server_1_997abd27259a | [update] Saving archive in /root/.unison/sc6f3ba2960ddd2864b2859cf82acc1651
sync-server_1_997abd27259a | [update] Copying archive /root/.unison/tm4981c0ebae83fffec824e92fb29a7fc2 to /root/.unison/ar4981c0ebae83fffec824e92fb29a7fc2
sync-server_1_997abd27259a | [update] Copying archive /root/.unison/tm6f3ba2960ddd2864b2859cf82acc1651 to /root/.unison/ar6f3ba2960ddd2864b2859cf82acc1651
sync-server_1_997abd27259a | [update] Removing archive /root/.unison/tm4981c0ebae83fffec824e92fb29a7fc2
sync-server_1_997abd27259a | [update] Removing archive /root/.unison/tm6f3ba2960ddd2864b2859cf82acc1651
sync-server_1_997abd27259a | Synchronization incomplete at 14:10:52  (0 items transferred, 0 skipped, 2 failed)
sync-server_1_997abd27259a |   failed: 
sync-server_1_997abd27259a |   failed: tags/day/2020-03-04.txt
sync-server_1_997abd27259a | 
sync-server_1_997abd27259a | Sleeping for 30 seconds...

Reproducing steps : go to standardnotes-fs dir, try to create file :

touch: setting times of '.service_file': No such file or directory
tannercollin commented 4 years ago

Hi Alex,

This was done on purpose to prevent creation of editor files. It's mentioned in the readme:

https://github.com/tannercollin/standardnotes-fs/blame/master/README.md#L158

As a work around, can you try running rsync / unison from the parent directory?

tannercollin commented 4 years ago

rsync lets you disable this with the --inplace option.