Rclone error copy from remote to local

What is the problem you are having with rclone?

when copying i get the following error ( -bash: syntax error near unexpected token `(' )

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

rclone v1.61.1

  • os/version: debian 11.6 (64 bit)
  • os/kernel: 5.10.0-19-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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 gdrive:/ Folder ~/user01/

The rclone config contents with secrets removed.

[gdrive]
type = drive
scope = drive
token = 
team_drive = 0AHf4k2r6GsBWUk9PVA
root_folder_id = 
client_id = 
client_secret = 

A log from the command with the -vv flag

Paste  log here

hello and welcome to the forum,

gdrive:/ Folder
did you intend to have a space character in the source, is that a typo?
maybe gdrive:/Folder

maybe run the command with -vv and post the output

hello that is a typo also when i type gdrive:/Folder i get the same error but when i type copy gdrive:/ ~/user01/ all files are copied i only want to copy one folder with the files

rclone copy gdrive:folder ~/user01 --dry-run -vv
must change folder to the name of your folder

the same error occurs again -bash: syntax error near unexpected token `('

please post the full output of the command i shared.

rclone copy gdrive:Drone(Videos) ~/user01/ --dry-run

try
rclone copy 'gdrive:Drone(Videos)' ~/user01/ --dry-run

there is no error only a blank line

root@wsl01:~/zork# rclone copy  'gdrive:Drone(Videos)' . -vv --dry-run
2023/01/26 21:00:14 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "copy" "gdrive:Drone(Videos)" "." "-vv" "--dry-run"]
2023/01/26 21:00:14 DEBUG : Creating backend with remote "gdrive:Drone(Videos)"
2023/01/26 21:00:14 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/01/26 21:00:14 DEBUG : Google drive root 'Drone(Videos)': 'root_folder_id = 0AIYnsu88uXytUk9PVA' - save this in the config to speed up startup
2023/01/26 21:00:14 DEBUG : Creating backend with remote "."
2023/01/26 21:00:14 DEBUG : fs cache: renaming cache item "." to be canonical "/root/zork"
2023/01/26 21:00:14 NOTICE: file.ext: Skipped copy as --dry-run is set (size 0)
2023/01/26 21:00:14 DEBUG : Local file system at /root/zork: Waiting for checks to finish
2023/01/26 21:00:14 DEBUG : Local file system at /root/zork: Waiting for transfers to finish
2023/01/26 21:00:14 NOTICE:
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.7s

ok i think the problem was solved i deleted the user01 only typed ~/ and it worked

gdrive:Drone(Videos)' -P ~/

thanky you :slight_smile:

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