Deduplicate, compress, encrypt and snapshot. Encryption is a must. You don’t want to send your data out there in the wild, that might potentially be published in a dark net website. It might go everywhere who knows.
Data Hoarder
We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time (tm) ). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.
I don't use cloud storage for backups, but any data I don't want to change (pictures, music, etc.) on my NAS has par2 automatically created for them on the primary storage device. After that, both the original file and par2 files get backed up.
I have some thoughts on this.
Would XChaCha20-Poly1305 be ample for this purpose?
Yes. But there's a saying "Don't roll your own crypto" that applies here. Cryptography is very much something that should only be done by people who know what they're doing. Even the pros screw it up from time to time. I'd encourage you to write your own encryption program for educational purposes, but not to rely on it for real security until you get a lot of crypto experience under your belt.
A lot of people here will recommend rclone. This is a good recommendation, but rclone's crypt remote has a few limitations that you should know about:
-
It does not obfuscate file sizes or the directory structure and file tree. This could allow an attacker who has access to the ciphertext to identify known collections of files. Don't count on rclone's encryption to help you deny being in possession of a pirated copy of The Simpsons, for instance.
-
It does not protect your files from a malicious cloud provider that wants to truncate or rearrange your files without being detected.
Rclone is still fine for encrypting photos that you took yourself, documents, etc. It'll keep your private data from being sold on the dark web if your cloud account is hacked and dumped.
I was thinking about using PAR2
PAR2 saved me once when I had important files on a failing hard drive. It probably won't help you much with cloud stuff though since most competent cloud providers have their own error correction. If you do use PAR2, apply it to the ciphertext, not the plaintext. If you get bit rot, you'll need to repair the ciphertext to be able to decrypt it if it was encrypted with authenticated encryption.