Script Creating Hardlinks on Remote Server
Posted: 17 Oct 2018, 21:38
@Rednoah
I only ask this after spending an hour trying to find the answer on the forums (which I'm sure is there somewhere, but I can't find it).
Goal: have a script / batch (AMC?) run over a source directory on a cloud server (e.g. ~/private/deluge/data/movies) and create hardlinks for all of the files newer than [variable date/time] that the script / batch finds, with the hardlinks to be saved in another directory on the same cloud server (~/private/plex/plexmedia/movies).
Problem: some of the content in the source directory will be individual files at the top level (e.g. ~/private/deluge/data/movies/star.wars.1977.randomtext.mkv), but some will be in subdirectories (e.g. ~/private/deluge/data/movies/raiders.of.the.lost.ark.1981.randomtext/raiders.of.the.lost.ark.1981.randomtext.mkv).
I can only access the remote server via an FTP client and terminal. I have not installed Filebot on the remote server, but I assume that's possible. I don't need this script to be called by a torrent client or run at intervals (Chron), but that ability would be a plus. I'd be happy to just be able to use terminal to login to the server and run the script / batch.
Thank you for your patience. Feel free to tell me to go read the example which already exists (but I can't find).
I only ask this after spending an hour trying to find the answer on the forums (which I'm sure is there somewhere, but I can't find it).
Goal: have a script / batch (AMC?) run over a source directory on a cloud server (e.g. ~/private/deluge/data/movies) and create hardlinks for all of the files newer than [variable date/time] that the script / batch finds, with the hardlinks to be saved in another directory on the same cloud server (~/private/plex/plexmedia/movies).
Problem: some of the content in the source directory will be individual files at the top level (e.g. ~/private/deluge/data/movies/star.wars.1977.randomtext.mkv), but some will be in subdirectories (e.g. ~/private/deluge/data/movies/raiders.of.the.lost.ark.1981.randomtext/raiders.of.the.lost.ark.1981.randomtext.mkv).
I can only access the remote server via an FTP client and terminal. I have not installed Filebot on the remote server, but I assume that's possible. I don't need this script to be called by a torrent client or run at intervals (Chron), but that ability would be a plus. I'd be happy to just be able to use terminal to login to the server and run the script / batch.
Thank you for your patience. Feel free to tell me to go read the example which already exists (but I can't find).