Rclone: Automatically run cleanup when remote out of space?

Created on 1 Aug 2019  路  2Comments  路  Source: rclone/rclone

What problem are you are trying to solve?

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

How do you think rclone should be changed to solve that?

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.

Drive UX enhancement help wanted new feature

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 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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings