hardlink to multiple locations?

Any questions? Need some help?
Post Reply
omanko
Posts: 7
Joined: 04 Feb 2017, 08:50

hardlink to multiple locations?

Post by omanko »

i'm currently using the amc script to sort and process my Downloads folder and hardlink to my cloud storage folder:

Code: Select all

filebot -script fn:amc --output /home/owner/gdrive --action hardlink -non-strict /home/owner/Downloads
is it possible to specific additional hardlink output location on the same line? or would I have to call the filebot script twice?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: hardlink to multiple locations?

Post by rednoah »

Option 1:
Call the amc script twice.

Option 2:
Call the amc script once. Then mirror other locations via --db xattr. I'd pick Option 2 because it's faster and more reliable.
:idea: Please read the FAQ and How to Request Help.
omanko
Posts: 7
Joined: 04 Feb 2017, 08:50

Re: hardlink to multiple locations?

Post by omanko »

something like this?

Code: Select all

filebot -script fn:amc --output /home/owner/gdrive --db xattr --action hardlink -non-strict /home/owner/Downloads 
filebot -script fn:xattr --output /home/owner/newfolder --action hardlink -non-strict /home/owner/Downloads
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: hardlink to multiple locations?

Post by rednoah »

Process as usual:

Code: Select all

filebot -script fn:amc --output /Media --action hardlink -non-strict /Downloads
Mirror xattr tagged files to another destination:

Code: Select all

filebot -rename -r /Media --db xattr --action hardlink --output /Mirror --format "{plex}"
:idea: Please read the FAQ and How to Request Help.
omanko
Posts: 7
Joined: 04 Feb 2017, 08:50

Re: hardlink to multiple locations?

Post by omanko »

cool, works wonders! thanks!
Post Reply