After having successfully installed OC V.10.10.0 (stable) I want to migrate all documents from my OpenKM installation.
Before I do this, I need to know how to export by mass all documents tagged with a certain tag-id.
Unfortunately, in the web-UI, tags can be filtered but then, the export functionality is not there.
So I went through more technical stuff, the request being rare, occasionally once a year for audit.
Current situation:
I figured out how to access to the MySQL table = oc_systemtag_object_mapping .
Also, I have full access to the file path / name in table = oc_filecache
The only thing which is missing is a statement to export the files from the directory. Is there any functionality to do so? I’ll be thankfully for all advices.
Whenever you have the path, you could use curl to get the file. Or did I miss something?
Personally, I’d prefer using the APIs, in favor of direct SQL access.
Exactly the same behaviour.
The file appears, but when I open it, it’s “broken”.
That’s what happens in console:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6587 0 6587 0 0 29237 0 --:–:-- --:–:-- --:–:-- 30495
Adobe Acrobat Reader konnte „Scan08-14-2022-094509.pdf“ nicht öffnen, da der Dateityp nicht unterstützt wird oder die Datei beschädigt ist (z. B. wenn sie als E-Mail-Anhang geschickt und nicht korrekt dekodiert wurde).
Good news!
Today in the morning time it works.
Don’t ask why… I don’t get it.
Here the final statement, quite exactly like above, but now the files are readable. Tested with pdf and txt as well. Bizarre!
Final remarks: You didn’t use this in the initial curl command. Is something wrong with your certificate? And BTW, you should always hide all sensitive information in your posts.