I have some content in a Cryptomator Volume (which means, the content is encrypted until I open the vault).
This Volume is then usable as /Volumes/CRYPTOMATOR in macOS.
If I just import this folder into DT, DT does not get updates to the volume and the volumes does not get updates from DT. This would be pointless.
Therefor, I was thinking about indexing this instead:
When I index this folder, I can add, change and delete things from DT and they get reflected in the volume - and vice versa.
Right?
I could even add this database to the remotely synced databases and could access the content from DTTG.
Right?
What, if I then add or change or delete things from DTTG?
The change would get noticed from DT when I start it again and therefor, the changes again would get reflected in the Cryptomator Volume.
Right?
I just have massive respect for indexing databases and fear that I may do something wrong and loose data …
We don’t use Cryptomator here so you’d have to test it in your environment. It may… or may not… issue filesystem events that DEVONthink would be aware of.
I could even add this database to the remotely synced databases and could access the content from DTTG.
No, DEVONthink To Go wouldn’t be accessing the remote content on another device. It would have a ocal copy of the data on the iOS device.
What, if I then add or change or delete things from DTTG?
The change would get noticed from DT when I start it again and therefor, the changes again would get reflected in the Cryptomator Volume.
Yes, changes would be synced between DEVONthink To Go and DEVONthink. Technically it would appear the indexed folder would be updated but again, you have to test this in your scenario.
I just have massive respect for indexing databases and fear that I may do something wrong and loose data
Good! People shouldn’t fear indexing but be thoughtful and understand the filesystem ramifications when dealing with indexed items in DEVONthink.
Well, I’d say your shell commands are unrelated to the topic at hand. You can process the Cryptomator folder in whatever fashion you need to, including shell processing. DEVONthink and DEVONthink To Go operate outside thos actions. however, if you’re moving or deleting indexed files outside the database, you should consider whether indexing is the best idea.
I noticed something that does not work, strangely.
I have the Cryptomator volume also available on my iDevices and just duplicated one file.
This got instantly visible within the Cryptomator volume on my Mac, as expected (this is a folder on OneDrive).
But this time, DT did not notice the change … most probably, because it was not issued on the same machine, but remotely.
But after a “Update indexed items” from the DT menu, the file showed up.