Hello all. First topic here. To start things off, I would like to thank ncw and all the people involved for this really useful little piece of software, been using it for quite some time now and I couldn’t give up on it.
On the topic of my question. I’m not really an IT expert, so i’m struggling on setting thins up properly. I’m using Windows 10 and i can use rclone through the cli just fine, however I would like to setup an automation for my finished jobs to start as soon as it finishes.
For my case in particular, i’m downloading files to a specific Downloads folder, however my disk space is limited and so i would like to send them to my Drive as soon as they have finished downloading. I’m using jDownloader as my download manager, the files that are still downloading have a “.part” extension so its easy to give exclude filters for the downloading files.
I did try something like was debated here Struggling to schedule an RClone job but i’m not sure if its because i’m mixing apples and potatoes (win and linux) or it’s just plain ignorance on my part, I couldn’t make it work.
This was the script I opened on Cygwin64 (not sure if its the appropriate software for it but i gave it a try), the script is saved on I:\rclone.sh
LOCKFILE=“I:/basename $0
”
(
flock -n 9 || {
echo “$0 already running”
exit 1
}
export RCLONE_CONFIG_PASS=(my config pass)
rclone move --ignore-existing -v --transfers 16 --checkers 16 --exclude *.part I:\Downloads gsuite:“Foo/Bar/Downloads”
) 9>$LOCKFILE
It showed me this:
./rclone.sh: line 2: $’\r’: command not found
./rclone.sh already running
: numeric argument required1
I’m sorry for my noobness but is there an easier way to achieve this on Win10? Thanks in advance.