Batch file setup help

What is the problem you are having with rclone?

Unable to run the batch file to sync between folders.

Run the command 'rclone version' and share the full output of the command.

C:\Users\tanze>rclone version
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
I am actually trying to sync between a Syncthing local folder and cloud mounted folder

The command you were trying to run (eg rclone copy /tmp remote:tmp)

C:\Users\tanze>rclone sync D:\[[folder name]] F:\[[folder name]

basically the above command works fine when executed from Command Prompt. But when I try to do the same from batch file it's not executing.

Batch file Contents

rclone sync D:\[[folder name]] F:\[[folder name]] --log-level INFO --user-agent rcloneapp --stats 1m
pause

welcome to the forum

--- need to use hardcode fullpath, for example c:\path\to\rclone.exe
--- might need to hardcode config file location using --config
--- need run the command with --log-level DEBUG

--- we cannot see into your machine, need post the full output, including
the exact command
the exact syntax

and make sure to test using --dry-run

When not sure why something does not work try to log all output:

rclone sync D:\[[folder name]] F:\[[folder name]] --log-level DEBUG --log-file C:/path/to/rclone.log --user-agent rcloneapp --stats 1m
pause

then you can have a loot at C:/path/to/rclone.log and it should tell you what was not correct.

Only when all working change it back to INFO level only.

So I actually installed rclone using chocolatey. In chocolatey bin folder rclone.exe application is present.


I am unable to locate the log file path. As a result I am unable to generate the log report.

when you run rclone you specify where log file is saved using this flag --log-file C:/path/to/rclone.log. You do not locate anything - you explicitly specify where to save it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.