How to automate filebot on synology nas

Any questions? Need some help?
Post Reply
limera1n
Posts: 1
Joined: 24 Jan 2020, 17:58

How to automate filebot on synology nas

Post by limera1n » 24 Jan 2020, 18:27

Hello everyone,

I am using filebot on my ds414. I have configured it via filebot node so it renames and moves media files from my downloads folder (where my download station saves torrents) to my video folder. Everything works pretty good but I would like to know how can I automate the process. I know that I can schedule to run filebot via task scheduler and so I did. However, that is not exactly what I am looking for. I want it to run automatically, for example, when download station finishes downloading a torrent. In theory I could set it to run every 1 minute via scheduler but I guess it will be too much for my nas. I asked on reddit as well and one of the suggestions was to program task scheduler to scan the downloads folder for new files and only if there are any to call filebot (that should be not so resource-consuming). Since I am not familiar with linux and scripts, I have no idea how to implement this solution. At the moment the filebot task in scheduler looks like this: /usr/local/filebot-node/task 2. Any viable solutions with step by step explanations will be greatly appreciated!

User avatar
rednoah
The Source
Posts: 17469
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to automate filebot on synology nas

Post by rednoah » 26 Jan 2020, 20:53

e.g. bash script to check if /folder contains any files modified within the last 60 minutes and perform given command if that is the case:

Code: Select all

if test `find /folder -mmin -60`; then
	echo "RUN COMMAND"
fi
:idea: https://stackoverflow.com/questions/524 ... ur-in-unix
:idea: Please read the FAQ and How to Request Help.

Post Reply