Migrate embedded xattr to .xattr folder in Synology

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
Liryc17
Posts: 5
Joined: 03 May 2020, 09:39

Migrate embedded xattr to .xattr folder in Synology

Post 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]
User avatar
rednoah
The Source
Posts: 22970
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Migrate embedded xattr to .xattr folder in Synology

Post 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
:idea: Please read the FAQ and How to Request Help.
Liryc17
Posts: 5
Joined: 03 May 2020, 09:39

Re: Migrate embedded xattr to .xattr folder in Synology

Post by Liryc17 »

Great, I was not aware about this windows functionnality :+1:
Liryc17
Posts: 5
Joined: 03 May 2020, 09:39

Re: Migrate embedded xattr to .xattr folder in Synology

Post 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
User avatar
rednoah
The Source
Posts: 22970
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Migrate embedded xattr to .xattr folder in Synology

Post 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.
:idea: Please read the FAQ and How to Request Help.
Liryc17
Posts: 5
Joined: 03 May 2020, 09:39

Re: Migrate embedded xattr to .xattr folder in Synology

Post by Liryc17 »

And when filles are already well named ?
User avatar
rednoah
The Source
Posts: 22970
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Migrate embedded xattr to .xattr folder in Synology

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply