Hello,
I successfully exported a database by entering it in DT, selecting everything and then choosing the menu “File / Export / Files and Folders” to a folder.
Then, I tried to index this folder:
i first created a new database, selected it, then chose “File / Index Files and Folders”
That seems to work … but:
It includes the folder as top group in the database, while the Inbox and the Tags remain empty.
I tried both to index the folder and entered the folder and selected all items.
Both lead to the same result that no tags were added and the Inbox remained empty (while there is an “Inbox” folder below the top level folder).
I can only assume that I did something wrong at either export or when indexing.
Curious you are bothering to do this, but perhaps take a look at the section “Tagging” starting on page 14 of the outstanding “DEVONthink Manual” for clues.
So it seems that it is required that SpotLight indexing is required for this to work?
That’s disappointing … and it would better to show a pop-up when exporting files and folder while this is not enabled for a database!
I enabled SpotLight and rebuild it, then I tried to re-export.
But sadly, DT creates all files and folder with an attached “-1” instead of overwriting.
There should an option to prevent this!
So, I needed to delete and export again - all to a OneDrive devices
Lots of file operations and uploads…
But:
The behavior is the same: All tags are lost!
I also checked for the “DisableFinderTags” hidden preference, but it does not exist, so is not set.
Any other idea?
I already tried the “Tags” button in Finder, but it indeed does not show any tags, so they were not exported from DT.
Maybe I need to enable this for Finder too?
About why I want to use indexed instead of imported items:
It is by far the better solution for me!
It allows to access everything with the command line!
And, I can store this in an encrypted Cryptomator Volume, that sits on OneDrive - this way, Microsoft only sees encrypted files, while all my devices can not only access them with DEVONthink and DTTG, but also freely in the Finder or the command line!
This is just perfect, as DT / DTTG do not offer access as a virtual file system.
I tested this for months with one database and found no problems.
But now, I am stuck, as I cannot find a way to keep my tags.
This definitely worked with the first database!
I wrote that already in my first reply, I checked for this and it is not set:
(base) tja@mini:~$ defaults read com.devon-technologies.think3 DisableFinderTags
2022-07-30 11:17:04.476 defaults[11185:15075179]
The domain/default pair of (com.devon-technologies.think3, DisableFinderTags) does not exist
I tried to manually create a Finder tag on a file in the Cryptomator volume.
This gave the following error:
The operation can’t be completed.
An unexpected error occured (error code -8058).
That could hint to a problem with Cryptomator or OneDrive, as you wrote.
But … I already migrated one database into such a volumes and it has all tags!
Either I did something different and cannot remember, or one of the components involved changed their behavior meanwhile.
This could prove to be very very frustrating.
Need a break.
No tags were created for the exported files and folders.
I then tried to manually create a tag and this time it worked!
So, if I can get DT to export all tags to a local folder and then index it, I should later be able to move the database and change the folder after moving it to Cryptomator on OneDrive.
But as it seems, the tags do not get exported by DT.
EDIT: This is solved!
My inexperience with SpotLight (which I normally totally disable) was the cause.
The way to first export to a local folder and then change the indexed path works!
I tested this successfull, many many thanks!
EDIT: Did this. Yes, OneDrive seems to be problematic with tags.
I can only imagine that I exported to a local folder and later moved the folder to Cryptomator on OneDrive, after the tags got imported into the datase.
But right now, it seems that DT does not export them to begin with, even when using a folder in my $HOME on the Mac disk.
The “Create Spotlight Index” is set for the database and I used “Rebuild” (which did not indicate wether it did something or not)
EDIT: This is solved!
My inexperience with SpotLight (which I normally totally disable) was the cause.
The way to first export to a local folder and then change the indexed path works!
I tested this successfull, many many thanks!
It’s not the first time that this comes up in the forum. Finder tags are extended attributes and as such they depend on the file system‘s details. There are file systems that support extended attributes and there are the others. And even if two file systems both support extended attributes they might not use the same _names _ for them.
Other extended attributes are comments and keywords. Just as a warning.