Copy multiple paths to different remotes

What is the problem you are having with rclone?

I want to be able to use one copy command to copy multiple paths to one remote with a different path for each file

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

rclone v1.66.0

  • os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
  • os/kernel: 10.0.22631.3737 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.22.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 "C:\Users\noni\Desktop\" Gencrypt:"/C-lap/Users/noni/Desktop/" --include C:\Users\noni\AppData\Roaming\Mozilla\Firefox\Profiles Gencrypt:"\C-lap\Users\noni\AppData\Roaming\Mozilla\Firefox\Profiles" --create-empty-src-dirs -P --backup-dir Gencrypt:"/C-lap-backup/Users/noni/Desktop/"

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

type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

type = crypt
remote = Drive:encrypt
password = XXX```

A log from the command that you were trying to run with the -vv flag

2024/07/07 00:56:16 Failed to load filters: bad glob pattern "C:\\Users\\noni\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles" (regexp "(^|/)C:\\Users\\noni\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles$"): error parsing regexp: invalid escape sequence: `\U`


not sure what that means. can you explain with an real world example?

Let's say you want to back up 2 lanes to the same remote but choose the location that each lane will back up on the remote

For example:
Path 1: C:\Users\noni\Desktop\Archive to the path in the Gencrypt remote:"/C-lap/Users/noni/Desktop/Archive

In the same command you want the path in to be backed up as follows:
Path 2: C:\Windows\ASUS\ScreenSaver to the path on the Gencrypt remote:C:\Windows\ASUS\ScreenSaver

ie something like this:

rclone copy C:\Windows\ASUS\ScreenSaver Gencrypt:"C:\Windows\ASUS\ScreenSaver C:\Users\noni\Desktop\Archive Gencrypt:/C-lap/Users/noni/Desktop/Archive

Then maybe:

rclone copy c:\ remote:backup-c \
--filter "+ /Windows/ASUS/ScreenSaver/**"\
--filter "+ /Users/noni/Desktop/Archive/**"\
--filter "- *"

copy from C: drive root and use filters to select what exactly to transfer.

Otherwise you can always use multiple rclone commands - one for each path.

And what about the path at the destination? Will it apply it "automatically"?


Do some test with small dataset and see if it is what you want.

If you have many directories it might be easier to use --filter-from and keep all filters in a file instead of having multiple --filter flags.