I am trying to come up with a scripted solution to this:
I have a server which functions as a seedbox. I've got it working perfectly and i've set it to move finished downloads to a COMPLETE/ folder, that way i can easily rsync the dir from the remote server to my local box. This is all well and good but, now i have a new problem i'd like to solve.
If i use rsync, i have no problem RETRIEVING the files, but i have to leave the local copy of the downloaded files on my box until i decide to stop seeding them (because if i remove it locally, it will just download again as soon as the next rsync is run)
SOOO what i'm looking to do is this: somehow keep a history of files which i have already sync'd and only download the ones which do not match this history, while at the same time removing items from this history file when they no longer exist on the remote server. After this, i'd also like to be able to take these newly synced files, unrar them and delete everything except the rar'd copy without having to worry about it all downloading and unraring again.
If anyone has ANY idea of where a good place to start with this is, please let me know.
(i reccon the rsync issue should be tackled first but i'm kind of stuck)
I have a server which functions as a seedbox. I've got it working perfectly and i've set it to move finished downloads to a COMPLETE/ folder, that way i can easily rsync the dir from the remote server to my local box. This is all well and good but, now i have a new problem i'd like to solve.
If i use rsync, i have no problem RETRIEVING the files, but i have to leave the local copy of the downloaded files on my box until i decide to stop seeding them (because if i remove it locally, it will just download again as soon as the next rsync is run)
SOOO what i'm looking to do is this: somehow keep a history of files which i have already sync'd and only download the ones which do not match this history, while at the same time removing items from this history file when they no longer exist on the remote server. After this, i'd also like to be able to take these newly synced files, unrar them and delete everything except the rar'd copy without having to worry about it all downloading and unraring again.
If anyone has ANY idea of where a good place to start with this is, please let me know.
(i reccon the rsync issue should be tackled first but i'm kind of stuck)