Backups
What's the scenario?
I want to backup a space. I use Any several days a week, but as you say, don't put important data into it. If I had a way to back it up - manually or automatically - I'd trust it more during the test period and would be more comfortable using it more extensively - in a wider variety of scenarios and with more data.
What's the goal?
Important The initial goal for backups for testers is a first step, and a lower bar than a requirement for a general release.
In order of decreasing priority:
- automatic backup that keeps a compressed and encrypted snapshot of all documents in my designated spaces (I'd select some spaces to back up but not scratch spaces used for testing). To restore from backup, the data could be (a) loaded into OG Anytype; (b) loaded into a past builds of Any (you would need to preserve all old builds so we can download and restore a snapshot on the build in which it was taken); and/or (c) turned into markdown files using a cli tool.
- manual backups where I can take compressed & encrypted snapshots that can be exported in one or more of the three ways above
- manual backups that are not encrypted, but can be exported in one or more of the three ways above
- export to a folder of markdown files with metadata. that may or may not be importable into Any.
I'm not picky about backup scheduling during the test period. anything is better than nothing. Some potential options:
- snapshots + stream of deltas (follows CRDT log). using the stream you can reconstruct data at any point in time, and user can navigate history back to the last full snapshot.
- I pick a snapshot schedule and data retention policy, e.g., 8 hourly, 8 daily, 5 weekly, 4 monthly, 2 yearly
Nice to have: I could use an asymmetric encryption key for backups ('age key', for example, ed25519 or PQ) and store the public encryption key in the app settings. Backups go to a folder I specify. I can set up backups on that folder using any service I choose. For some people who use windows, mac iCloud, or gdrive, the folder of encrypted backups could be auto synced with those cloud services.
Of course, you'll need to make restore easy for the average user. To be clear, for the testers, IMO, don't hold off on backups while creating the perfect recovery tool. Get basic backup working. Even backup to unencrypted markdown would be a step forward, and even that would make me more comfortable using Any more often and in a wider variety of use cases.
Who is this for?
All users
3 Comments
Sign in to comment
To consider if this becomes implemented:
Encrypted backups should use a different key then the normal Space.
Why?
Because it's known that it weakens encryption if many files use the same key.
If the backups would use the Space's passphrase as key, it would weaken the Space itself if someone gets a backup in his hands.
The more encrypted files an attacker gets into his hand (if identical keys are used), the higher his chance to compare them with each other and to find out how to crack the encryption.
I agree with Code-Jack. I intended 100% that a backup encryption key would be different from a space key, although I didn't state it explicitly. The example used an 'age' encryption key. Whether the encryption is symmetric or asymmetric is a separate policy decision, and either could be made to work securely.

In the spirit of “Don’t let the perfect be the enemy of the good”… Any Any backup, even unencrypted, is better than No Any backup, and would be a welcome addition.