Hey guys, I’m completely new to this but learning fast so please bear with me
I have installed RClone on a shared seedbox and am sending the files to my google drive. I have created a script that seems to work but I am completely lost when it comes to setting up a schedule for it.
I’ve read through the forums and tried to piece some bits together but I’m not getting anywhere fast with it at the moment.
It appears the no-traverse and the log were the issue
I do have another question whilst I’m here though; Is it possible to have multiple rclone moves to differet destinations in the same script? Or do I need to make multiple scripts?
Cheers
EDIT:
Urghh, I spoke too soon. My script works fine if I run it manually, but the cron scheduling part just isn’t happening
Anyone have any suggestions?
#!/bin/bash
if pidof -o %PPID -x “rclone-cron.sh”; then
exit 1
fi
rclone moveto ~/private/rtorrent/data/Complete/ “gdrive:/The Skull/Complete” -v --min-age 1m --log-file=/private/rclonelogs/rclone-upload.log
but I get this error;
[pallas ~] /media/dma/craftyclown/rclone-cron.sh
2018/06/11 09:37:44 Failed to open log file: open /private/rclonelogs/rclone-upload.log: no such file or directory
I tried manually adding a file called rclone-upload.log using filezilla and gave it 777 permissions but it made no difference
If I can’t even get the log to work then I have no way of knowing what is going wrong with the rest of the job!
Guys I think there’s still something wrong with my script.
Large files are getting copied many times over and I have ended up with 9 copies of a 35gig file! If I keep going like this I’m quickly going to hit the Google daily limit
Is there anything I can add to the script to prevent these multiple downloads? I presume it’s because the larger files are still in the process of copying over.
This is my script as it stands;
#!/bin/bash
if pidof -o %PPID -x “rclone-cron.sh”; then
exit 1
fi
/media/dma/craftyclown/bin/rclone copy ~/private/rtorrent/data/ “gdrive:/The Skull/Feral” -v --min-age 1m
Ahhhhhhhh. Apologies. I copy and pasted it from another thread here and didn’t spot that. Do you think that is why I have been getting the duplicated runs then?
So which script would be better? Or are both essentially the same?
#!/bin/bash
if pidof -o %PPID -x ‘‘rclone-cron.sh’’; then
exit 1
fi
/media/dma/craftyclown/bin/rclone copy ~/private/rtorrent/data/ “gdrive:/The Skull/Feral” -v --min-age 1m
Thanks Nick, that is super helpful. I can’t believe the quotes were the issue!
In future if multiple Rclone jobs have been accidentally run, is there a way of checking for that and potentially cancelling them?
On another note, the huge amount of dupes have triggered a 24 hour ban with Google. Would you happen to know if there is a way of finding out when the ban was triggered and when it is due to end?