CLI Symlink reverse operation

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
poxin
Posts: 1
Joined: 27 Apr 2016, 23:30

CLI Symlink reverse operation

Post by poxin »

So I managed to get my deluge execute script working. This is the filebot line for processing:

Code: Select all

filebot -rename "$torrentpath/$torrentname" --format "{n}/Season {s}/{s00e00} - {t}" --db TheTVDB -non-strict --output "/mnt/storage/tvshows" --action symlink
It's working as expected and makes the following for example:

Code: Select all

S03E01 - Show Title.mkv -> ../tvshows/Show.Title.S03E01.720p.mkv
So the original file is still "Show.Title.S03E01.720p.mkv" and the symlink is "S03E01 - Show Title.mkv". Is there a way to reverse this? I'd like to have my renamed file in the library be the actual file, but be symlinked back to the original location for seeding purposes.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: CLI Symlink reverse operation

Post by rednoah »

Yes:

Code: Select all

--action keeplink
If input/output is on the same filesystem, then you want to use hardlinks:

Code: Select all

--action hardlink
:idea: Please read the FAQ and How to Request Help.
Post Reply