Automated backups
Set it once.
Restore any time.
Timestamped backups, encrypted on your machine, that rotate themselves: OzVault keeps the newest copies and deletes the rest for good, so backups never fill your storage by surprise.
// Stored as backups/2026-10-13T20-15-00Z_bot.db
const data = new Blob([await readFile("bot.db")]);
await vault.backup(bucketId, data, key, {
name: "bot.db",
keep: 14, // older copies are deleted for good
});
const { blob } = await vault.restoreBackup(bucketId, key, {
name: "bot.db",
});Ready-made
Pick what you’re protecting.
A Discord bot
A discord.js template backs up the bot's data every few hours, with /backup and /restore.Bot backupsA GitHub repository
A nightly workflow stores every branch and tag as an encrypted git bundle.Repository backupsAny server or PC
One cron line or scheduled task with the CLI backs up any file.CLI backups
Rotation
Old backups leave quietly.
Rotation only touches backups with the same name in the backups folder. Other files are never deleted.
- Name
- backups/<UTC time>_<name>
- Default kept
- 14 (you choose)
- Old backups
- Deleted for good
- Encryption
- AES-256-GCM, on your side
Rotated backups skip the trash, so they stop counting against your quota immediately. To keep them recoverable for the retention period instead, set
purge: false (SDK) or Trash: true (Go). A backup is only as good as your vault key: keep a copy of it somewhere other than the machine you back up.Start backing up today.
15 GB free is room for a lot of bot databases.