What is the problem you are having with rclone?
rclone is not able to solve duplicates in google drive due to permission error.
Run the command 'rclone version' and share the full output of the command.
rclone version
rclone v1.58.0
- os/version: ubuntu 21.10 (64 bit)
- os/kernel: 5.13.0-40-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.8
- 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 dedupe --dedupe-mode largest gdrive-media: \
--config /root/.config/rclone/rclone9.conf \
-vv \
--fast-list \
--progress \
--human-readable
The rclone config contents with secrets removed.
# cat .config/rclone/rclone9.conf
[gdrive-media]
type = drive
client_id = XXX.apps.googleusercontent.com
client_secret = GOCSXXX
scope = drive
root_folder_id = XXXXXXXX
service_account_file = /root/rclone_service_account #has domain wide delegation
impersonate = [email address of account which has editor rights on the folder. account is part of same domain as service account]
chunk_size = 256M
[gdrive-media-crypt]
type = crypt
remote = gdrive-media:/media
filename_encryption = standard
directory_name_encryption = true
password = XXX
password2 = XXX
A log from the command with the -vv
flag
2022-04-28 16:46:19 INFO : media/ef0jejslv4t93krcb6nlf4q4l0/90321aifb8nhm7g75agc6halt4/jdn7a8sr2uht5qgn6e6hq6qf98: Merging contents of duplicate directories
2022-04-28 16:46:19 INFO : media/ef0jejslv4t93krcb6nlf4q4l0/90321aifb8nhm7g75agc6halt4/jdn7a8sr2uht5qgn6e6hq6qf98: removing empty directory
2022-04-28 16:46:20 ERROR : merge duplicate dirs: MergeDirs move failed to rmdir "media/ef0jejslv4t93krcb6nlf4q4l0/90321aifb8nhm7g75agc6halt4/jdn7a8sr2uht5qgn6e6hq6qf98": googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
rclone move is working with same config.