Skip to content

rclone filling up trash on gdrive #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
petinox opened this issue Aug 23, 2020 · 3 comments · Fixed by #576
Closed

rclone filling up trash on gdrive #110

petinox opened this issue Aug 23, 2020 · 3 comments · Fixed by #576

Comments

@petinox
Copy link

petinox commented Aug 23, 2020

I noticed that my backups had stopped syncing to Gdrive by chance. It turns out the rclone sync command fills up the trash folder and then fails silently in the backup script.

I added --drive-use-trash=false to the rclone sync line in docker-backup.sh as per the documentation, that seems to fix the problem. Would it make sense to add that change to the repo?

Also, does anyone have suggestions on some kind of alarm if the backup is not successful? It's a bit disconcerting that this was a completely silent error.

@Paraphraser
Copy link

The one time something similar happened to me, I noticed a "you have mail" when I logged-into the RPi via SSH. That alerted me to the problem.

You could try augmenting the backup script with a mosquitto_pub aimed at the local Mosquitto container (in this case, the loopback address 127.0.0.1 would work because the backup process is running outside Docker), with a suitable topic and payload indicating either success or failure. Node-Red could subscribe to that topic and then you could do what you liked (send yourself an email, a notification with PushSafer or similar).

Even just an "it worked" on success and silence on failure would get you a bit further in front. You'd eventually think, "hey, I wonder why I haven't seen any backup confirmations for a while?"

Does that help?

@petinox
Copy link
Author

petinox commented Aug 25, 2020

Thank you for the suggestions. MQTT for the notification sounds like a good idea, I'll consider that. The trickier bit to me is to determine the success or failure of the backup script. I saw that you have a repo with a backup/restore solution for the IOTstack, I'll have a look there for inspiration.

The simplest/crudest approach for me right now would be to set up a file watcher in NodeRed that checks the Gdrive folder and alerts if new backups do't arrive on time, or if they deviate too much in size.

@Paraphraser
Copy link

Probably qualifies as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants