This repository contains some scripts I wrote to automate daily tasks. I hope they are useful to you as well :)
This Python script creates backups of your data to Microsoft OneDrive using rclone. It checks for updates on every start, interactively asks if you want to execute rclone's sync or cryptcheck commands (with some reasonable CLI flags set) and logs everything.
- Both Python and rclone are platform-independent
- rclone's
unionremote allows multiple accounts to be pooled together to bypass OneDrive's per-user quotas - rclone's
cryptremote allows your backups to be end-to-end encrypted - rclone's
cryptcheckcommand allows you to verify the integrity of your data - rclone's logs are actually useful
- Relative paths
./rclone.confand./filters.mdare used for portability, so these files are expected to exist in the same directory as this scriptrclone.confis expected to contain a source remote calleddata:(analiasfor a local path) and a target remote calledOneDrive:- Encrypting
rclone.confis possible, but the password has to be entered again for every command as rclone currently doesn't support reading it from stdin during runtime
- For automatic deletion of
rclone.old.exeafter an update to work on Windows,rclone.exeneeds to be in the same directory as this script (but can be anywhere otherwise)