So, I’m new to seedboxes, I am currently using one for a few torrents.
I discovered rClone and it’s perfect for syncing with pCloud for me, however I have one issue.
I want to either only sync/copy new files/folders, or skip copying/syncing a folder if the name of that folder already exists, even if the contents are different, or only sync/copy files/folders that are new since the last sync/copy. Is there a way to do this?
This is so my torrent can directly upload to the cloud, then I can edit it while its there, and then when I next sync/copy all the folders, it won’t mess with the ones I’ve just changed. If you know another way to do this, please let me know.
I’m new with SSH and Unix commands, so I’d need some serious guidance here.
there’s a “–max-age 2d” flag . Meaning only upload files that are newer that 2 days. Or a “–ignore-existing” if you’re trying not to clobber existing files on the destination you’ve modified.
If you’re sending torrents though you may find yourself uploading partial downloaded files and then finding they won’t be overwritten when they are complete because of the ignore existing flag.
Maybe I don’t understand what you were trying to do though.
Would --ignore-existing ignore existing folders, or the entire folder contents?
Because, if I rearranged files inside the folders and then I did --ignore-existing, and the --ignore-existing flag only recognised if the folder was exactly the same, it’d affect the folder by copying it over again since although the folder exists it’s not exactly the same. Am I correct with that?
That doesn’t really solve the problem. To try and clear this up, I’ll do my best to explain:
In my case, I get very messy torrents (which each consist of one folder, with either many files or many subfolders inside of them) directly on a seedbox, and then use rClone to sync it to my preferred cloud system. Then, I want to be able to reorganise the contents of each single folder of the torrent in my cloud system to organise them a bit. Only problem is, next time I copy it will detect a change and just re-copy.
The max age thing makes sense I guess, and I can manage by only syncing every 5 days and doing --max-age 5. I will only be syncing completed torrents by the way.
If there’s a better way you know of, please let me know.
If you're trying to only copy new torrents you'd want to copy way more frequently than the days defined. That flag tells rclone to only sync torrents that are newer than X period.
It's 5d btw...
Still think it's best to get it at the source when the torrent completes though be filing a script when the torrent is Moved to the seedbox.
You could do what the last comment said to do too. I just don’t like dealing with timing things like that. if you change something on your destination within the interval that those dates define then you’re going to screw up your destination with those new files again.
The only comment i’ll make about that script is if a rclone transfer fails, it’ll ignore it on the next run as that assumes all success between time stamps. The way you really should be doing this is creating a include file based on the contents of the directory and then that script combing the rclone log file to determine success/failure and removing those files from the include file. That include file then serves as a queue.
Yes, I also don’t know what goes in the “clever stuff goes here”, I’m assuming just my rclone command. I’m new to all this, but I am a decently quick learner. Would you be able to help me out?