Page 1 of 1

Migrate embedded xattr to .xattr folder in Synology

Posted: 03 May 2020, 12:11
by Liryc17
Hi,

I have a huge avi collection.
All theses videos has been renamed with the windows version of filebot and uploaded on my synology server.
Now I want to export xattr metadata to the .xattr folder.

I try the amc script but it fail because input folder is the same as output folder...

An idea for doing this without moving every file (and so rebuild syno index) ?

Code: Select all

filebot -script 'fn:sysinfo' --log-file '/usr/local/filebot-node/data/filebot.log'

------------------------------------------

FileBot 4.9.1 (r7372)
JNA Native: 6.1.0
MediaInfo: 19.04
7-Zip-JBinding: 9.20
Chromaprint: 1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 14.0.1
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1.0 GB Max Memory / 41 MB Used Memory
OS: Linux (amd64)
HW: Linux NAS-C3PO 3.10.105 #24922 SMP Wed Jul 3 16:35:48 CST 2019 x86_64 GNU/Linux synology_cedarview_412+
STORAGE: ext4 [/] @ 841 MB | ext4 [/volume1] @ 2.3 TB
DATA: /volume1/@appstore/filebot/data/admin
Package: SPK
License: FileBot License PX11176945 (Valid-Until: 2070-01-12)
Done ヾ(@⌒ー⌒@)ノ

------------------------------------------

[Process completed]

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 03 May 2020, 14:52
by rednoah
Are the files currently xattr tagged?


* If you have processed files on device, then they're tagged via native file system xattr
* If you have processed files remotely via SMB shares, then xattr metadata should be available, but only via SMB, because the Synology SMB implementation stores the xattr data in some undocumented proprietary plain file format.


:arrow: You'll likely want to export the .xattr folders from your Windows machine with the GUI application, assuming that xattr metadata is available from that point of view.


Image

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 03 May 2020, 15:23
by Liryc17
Great, I was not aware about this windows functionnality :+1:

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 03 May 2020, 21:45
by Liryc17
It was really usefull for medias with already embbeded xattr properties, but how can I generate xattr for "old" files which has been renamed with previous version of filebot without xattr?
Thanks

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 03 May 2020, 22:50
by rednoah
You'll have to process files with Rename again. There's no way to add xattr metadata to files without also going through the matching and rename process.

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 04 May 2020, 06:00
by Liryc17
And when filles are already well named ?

Re: Migrate embedded xattr to .xattr folder in Synology

Posted: 04 May 2020, 08:17
by rednoah
Well, then you still have to process them again, with the added confidence that you can probably mostly skip user interaction this time around.


Strict Mode might be helpful when re-processing files into new folder structure without user interaction:
viewtopic.php?t=4695