What is the problem you are having with rclone?
rclone size/lsd/etc does not return an error code or an error when trying to access with a service account that has no access. Instead it shows an empty directory with no error code/message.
Potentially very dangerous:
rclone sync deletes all files in the destination if you use a service account file that has permission in the destination but not in the source remote.
Has been posted in github
What is your rclone version (output from rclone version
)
rclone v1.50.2-060-ga7d65bd5-beta
same behavior with 1.50.1 release
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Same behavior on
Ubuntu
Mac OS
Win 10
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
)
ls/lsd/lsf
size
sync
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
root@foo:/# rclone version
rclone v1.50.2-060-ga7d65bd5-beta
- os/arch: linux/amd64
- go version: go1.13.4
root@foo:/# rclone size source:
Total objects: 6
Total size: 11.144 MBytes (11685834 Bytes)
root@foo:/# rclone size source: --drive-service-account-file=/sa/1.json
Total objects: 6
Total size: 11.144 MBytes (11685834 Bytes)
root@foo:/# rclone size source: --drive-service-account-file=/sa/2.json
Total objects: 0
Total size: 0 Bytes (0 Bytes)
root@foo:/# rclone sync source: dest: --drive-service-account-file=/sa/1.json -vP
2019-11-25 16:28:55 INFO : Google drive root '': Waiting for checks to finish
2019-11-25 16:28:55 INFO : Google drive root '': Waiting for transfers to finish
2019-11-25 16:28:58 INFO : mtd.bin.docx: Copied (server side copy)
2019-11-25 16:28:58 INFO : test1/d.txt: Copied (server side copy)
2019-11-25 16:29:00 INFO : test1/e.txt: Copied (server side copy)
2019-11-25 16:29:00 INFO : test2/a.txt: Copied (server side copy)
2019-11-25 16:29:01 INFO : test2/b.txt: Copied (server side copy)
2019-11-25 16:29:01 INFO : test2/c.txt: Copied (server side copy)
2019-11-25 16:29:01 INFO : Waiting for deletions to finish
Transferred: 11.144M / 11.144 MBytes, 100%, 1.593 MBytes/s, ETA 0s
Transferred: 6 / 6, 100%
Elapsed time: 6.9s
2019/11/25 16:29:01 INFO :
Transferred: 11.144M / 11.144 MBytes, 100%, 1.593 MBytes/s, ETA 0s
Transferred: 6 / 6, 100%
Elapsed time: 6.9s
root@foo:/# rclone sync source: dest: --drive-service-account-file=/sa/2.json -vP
2019-11-25 16:29:09 INFO : Google drive root '': Waiting for checks to finish
2019-11-25 16:29:09 INFO : Google drive root '': Waiting for transfers to finish
2019-11-25 16:29:09 INFO : Waiting for deletions to finish
2019-11-25 16:29:10 INFO : test2/c.txt: Deleted
2019-11-25 16:29:10 INFO : mtd.bin.docx: Deleted
2019-11-25 16:29:10 INFO : test1/d.txt: Deleted
2019-11-25 16:29:10 INFO : test1/e.txt: Deleted
2019-11-25 16:29:10 INFO : test2/a.txt: Deleted
2019-11-25 16:29:11 INFO : test2/b.txt: Deleted
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 0 / 6, 100%
Deleted: 6
Elapsed time: 1.8s
2019/11/25 16:29:13 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Checks: 0 / 6, 100%
Deleted: 6
Elapsed time: 1.8s