2023/01/20 22:39:33 ERROR : Local file system at /mnt/googledrive-sync: not deleting files as there were IO errors
2023/01/20 22:39:33 ERROR : Local file system at /mnt/googledrive-sync: not deleting directories as there were IO errors
2023/01/20 22:39:33 DEBUG : Lock file removed: /root/.cache/rclone/bisync/google-cloud-sync{B45R0}_..mnt_googledrive-sync.lck
2023/01/20 22:39:33 ERROR : Bisync critical error: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
2023/01/20 22:39:33 ERROR : Bisync aborted. Must run --resync to recover.
Grep cannotDownloadAbusiveFile
2023/01/20 22:34:48 ERROR : project/Dynomite.exe: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
2023/01/20 22:36:27 ERROR : 3D/3/Jester .ma: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
Yup I will update soon , before that I try to excluded some of .ma .exe files type
and it's completed without any error thanks ! after this I can leave off --resync right ?
rclone --config rclone.conf -vv \
--drive-impersonate <user>@<domain> \
--drive-team-drive <...> \
--drive-skip-shortcuts --drive-skip-dangling-shortcuts \
--drive-acknowledge-abuse \
--progress \
sync SRC: "/mnt/backup/GDrive/Archive"
...
* work_env/Scripts/pythonw.exe: transferring
2023-01-28 13:30:06 ERROR : work_env/Scripts/pythonw.exe: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Checks: 48786 / 48786, 100%
Transferred: 0 / 1, 0%
Elapsed time: 17m4.6s
Transferring:
...
2023/01/28 09:48:17 Failed to sync with 3 errors: last error was: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
Traceback (most recent call last):
File "backup.py", line 89, in <module>
backup_shared_drive(u, d['id'], d['name'])
File "backup.py", line 79, in backup_shared_drive
raise ValueError("Command failed with code {}".format(p.returncode))
ValueError: Command failed with code 1
It seems that this is the same issue described here. I changed my command to impersonate a user who has Manager access on this drive, and it completed without error.
That's perfect thanks - I just wanted to make sure rclone was putting the right thing in the URL - which it is.
Ah!
I've put a little note in the docs about this for the next person (they will go live when 1.62 is released)
Note that if you are using service account it will need Manager
permission (not Content Manager) to for this flag to work. If the SA
does not have the right permission, Google will just ignore the flag.