Trying to create a bat file to run rclone copy

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

I'm trying to create a bat file to run RClone copy command to move our in house shared drives to Google Cloud shared drives, but I'm trying to figure out what commands to list in the bat file?

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

rclone v1.64.0

  • os/version: Microsoft Windows Server 2016 Standard 1607 (64 bit)
  • os/kernel: 10.0.14393.2273 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.1
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Drive

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

rclone copy E:\Shared\Public "Store Resources Drive" --bwlimit 2.5M --exclude "*/HR"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[Brand Assets]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[Distrib Drive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[IT Department]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[Media Drive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

[Store Resources]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =
### Double check the config for sensitive info before posting publicly```



#### A log from the command that you were trying to run with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable.  Or use a service such as https://pastebin.com or https://gist.github.com/   -->

Paste log here

welcome to the forum,

what do you need help with?
--- how to create a batch file to use rclone?
--- the exact rclone command and flags for that batch file?

whatever command you would run on the command line, put that into the batch file.
test with --dry-run -vv

"Store Resources Drive" should be "Store Resources Drive:"

How to create the code, this is my first time writing a bat file from scratch. Also, I tried to run just a straight rclone copy tonight and got an error:

C:\rclone>rclone copy E:\Shared\Public "Store Resources Drive:"
2023/09/13 20:40:06 NOTICE: Happy Feet_ Foot Solutions Store Contact List - STORE USE.xlsx: Duplicate object found in destination - ignoring
2023/09/13 21:21:19 ERROR : Happy Feet_ Foot Solutions Store Contact List - STORE USE.xlsx: Failed to copy: can't update google document type without --drive-import-formats

Looks like there is a Google Doc in destination already with the same name.

You have two options:

  1. replace google document with your local file - but then it has to be converted - add --drive-import-formats=xlsx flag

  2. if you want to copy your local file as it is - add --drive-skip-gdocs flag to your copy command

How Google docs are handled is described in the documentation where you will find all details and explanation.

that is a common issue with gdrive, as it alllows for duplicate filenames and rclone cannot handle that.
might need to run rclone dedupe