What is the problem you are having with rclone?
I have the following file structure:
Remote foo:
+ folder_a
+ folder_1
+ file_x
+ file_y
+ folder_2
+ file_z
I want to move folder_1
and folder_2
into the root of the remote, so that I end up with:
Remote foo:
+ folder_a (may as well disappear)
+ folder_1
+ file_x
+ file_y
+ folder_2
+ file_z
But I get an error message:
Failed to move: can't sync or move files on overlapping remotes (try excluding the destination with a filter rule)
Run the command 'rclone version' and share the full output of the command.
rclone v1.61.1
- os/version: Microsoft Windows 10 Pro 22H2 (64 bit)
- os/kernel: 10.0.19045.2728 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.19.4
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Remote foo:
is a crypt remote backed by a B2 remote.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone move "foo:folder_a/*" "foo:*"
I also tried:
rclone move "foo:folder_a/folder_1" "foo:*"
The rclone config contents with secrets removed.
[B2-foo]
type = b2
account = [REDACTED]
key = [REDACTED]
hard_delete = true
[foo]
type = crypt
remote = B2-foo:[REDACTED]/rclone-crypt
password = [REDACTED]
A log from the command with the -vv
flag
2023/04/12 05:07:02 DEBUG : Setting --config "[REDACTED]" from environment variable RCLONE_CONFIG="[REDACTED]"
2023/04/12 05:07:02 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "move" "foo:folder_a/*" "foo:" "-vv"]
2023/04/12 05:07:02 DEBUG : Creating backend with remote "foo:folder_a/*"
2023/04/12 05:07:02 DEBUG : Using config file from "[REDACTED]"
2023/04/12 05:07:02 DEBUG : Creating backend with remote "[REDACTED]"
2023/04/12 05:07:03 DEBUG : Couldn't decode error response: EOF
2023/04/12 05:07:03 DEBUG : Creating backend with remote "foo:"
2023/04/12 05:07:03 DEBUG : Creating backend with remote "[REDACTED]"
2023/04/12 05:07:03 DEBUG : Couldn't decode error response: EOF
2023/04/12 05:07:03 ERROR : Fatal error received - not attempting retries
2023/04/12 05:07:03 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (fatal error encountered)
Elapsed time: 1.6s
2023/04/12 05:07:03 DEBUG : 6 go routines active
2023/04/12 05:07:03 Failed to move: can't sync or move files on overlapping remotes (try excluding the destination with a filter rule)