What is the problem you are having with rclone?
Hi! I tried following the other threads on this forum regarding how to automatically copy or sync files to a remote using Window's task scheduler, but I cannot seem to get it to work no matter what I tried. Running the scheduled task manually will trigger the action that copies the files to the remote, but the scheduled task does not run automatically.
Below are some screenshots of the settings I set for the scheduled task I created:
Run the command 'rclone version' and share the full output of the command.
rclone v1.63.1
- os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
- os/kernel: 10.0.22621.2134 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Drive and OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
This is the rclone.cmd that I set in the action tab of the scheduled task
cd C:\Users\churi\rclone
rclone.exe copy "C:\Users\churi\Documents" gdrive-crypt:"Documents" --config="C:\Users\churi\AppData\Roaming\rclone\rclone.conf" --log-file="C:\Users\churi\rclone\rclone.log" --log-level="INFO"
rclone.exe copy "C:\Users\churi\Documents" onedrive-crypt:"Documents" --config="C:\Users\churi\AppData\Roaming\rclone\rclone.conf" --log-file="C:\Users\churi\rclone\rclone.log" --log-level="INFO"
The rclone config contents with secrets removed.
[gdrive]
type = drive
client_id = secret
client_secret = secret
scope = drive
token = {"access_token":"secret","token_type":"Bearer","refresh_token":"secret","expiry":"secret"}
team_drive =
[onedrive]
type = onedrive
client_id = secret
client_secret = secret
token = {"access_token":"secret","token_type":"Bearer","refresh_token":"secret","expiry":"secret"}
drive_id = secret
drive_type = personal
[gdrive-crypt]
type = crypt
remote = gdrive:Private
password = secret
password2 = secret
[onedrive-crypt]
type = crypt
remote = onedrive:Private
password = secret
password2 = secret
A log from the command that you were trying to run with the -vv
flag
The scheduled task does not run automatically, so nothing shows up in the log file. If I manually run the scheduled task, then I will see something like this in the log file:
2023/09/06 16:16:05 INFO : KeePass/recipes.kdbx: Copied (replaced existing)
2023/09/06 16:16:05 INFO : KeePass/Backups/recipes.20230906153244.kdbx: Copied (new)
2023/09/06 16:16:10 INFO :
Transferred: 113.428 KiB / 113.428 KiB, 100%, 18.659 KiB/s, ETA 0s
Checks: 631 / 631, 100%
Transferred: 2 / 2, 100%
Elapsed time: 9.2s
Thanks for taking the time to read this.