How backups are named and rotated
#A backup is a normal encrypted object named backups/<UTC time>_<name>, for example backups/2026-10-13T20-15-00Z_bot.db, so backups sort by time. With keep set, the newest N backups of that name stay and older ones are moved to the trash and then deleted for good, so they stop counting against your quota straight away. Other files in the folder are never touched.
Back up from code
#Every SDK has the same three calls: back up, list, and restore the newest.
await vault.backup(bucketId, new Blob([await readFile('bot.db')]), vaultKey, { name: 'bot.db', keep: 14 });
const { blob } = await vault.restoreBackup(bucketId, vaultKey, { name: 'bot.db' });vault.backup(bucket_id, 'bot.db', vault_key, name='bot.db', keep=14)
item, data = vault.restore_backup(bucket_id, vault_key, name='bot.db')0 */6 * * * ozvault backup /srv/bot/bot.db --bucket backups --name bot.db --keep 14Ready-made setups
#The Discord.js template backs up a bot's data file every few hours, on start and on shutdown, with /backup, /backups and /restore. The GitHub Actions workflow stores a nightly git bundle of every branch and tag. Both encrypt before upload with your vault key.
Back up live databases safely
#Copying a database file while it is being written can capture a half-written state. For SQLite, back up a snapshot created with VACUUM INTO or the driver's backup API. Keep a copy of your vault key away from the machine you back up: without it, nobody can decrypt the backups.
Clear documentation is part of the product.