I'm syncing forum backups to Google Drive. Older backups are automatically deleted and they end up in the Drive Trash. The problem is that Drive apparently still counts the space taken by the files in Trash against the 15GB quota, so when I run rclone sync, I get this error:
Failed to copy: googleapi: Error 403: The user's Drive storage quota has been exceeded., storageQuotaExceeded
Since #575 has been implemented, it would be really handy if rclone ran cleanup automatically when the error above is detected.
I tried running remote cleanup <myremote>: but I get
Error 403: Insufficient Permission: Request had insufficient authentication scopes.
Automatically deleting things from Trash could lead to files being deleted that users don't want. If this is added it should be put behind a flag.
If we did this, then it would have to be behind a flag, definitely.
In the particular case of google drive, I've noticed that rclone cleanup takes some time up to days sometime! And the results take a long time to be reflected in rclone about.
If you don't want stuff to go in the trash then use --drive-use-trash=false - that might be the best solution for backups.
Most helpful comment
If we did this, then it would have to be behind a flag, definitely.
In the particular case of google drive, I've noticed that
rclone cleanuptakes some time up to days sometime! And the results take a long time to be reflected inrclone about.If you don't want stuff to go in the trash then use
--drive-use-trash=false- that might be the best solution for backups.