Infrastructure
Backups
Folder backups, encrypted off-site copies, restore tests and database care.
Bistro keeps folder snapshots on your own disks and an encrypted off-site copy. It also tests that both restore.
#Folder Backups
Open Storage, then Backups, then Folder Backups. Each run is a full, browsable copy. Files that did not change are hard links to the last run, so a snapshot costs only what changed.
bistro backup add docs /srv/data/docs --keep 14
bistro backup run docs
bistro backup snapshots docs
bistro backup restore docs 2026-12-01T020000 --to /srv/data/restore/docsWithout --to, a restore goes to /srv/data/restore/NAME-SNAPSHOT. Add --when SCHEDULE to backup add to run it on a timer. The Schedules page also has a "Run a Folder Backup" job.
bistro backup delete docs # add --purge to delete the snapshots too#Off-Site Backup
Storage, Backups, Off-Site Backup sends encrypted, deduplicated snapshots (restic) to another place. Supported places are S3, Backblaze B2, another Bistro box over SFTP, a restic REST server, a USB disk path and any rclone remote.
Setup reads KEY=VALUE lines on stdin. If you give no RESTIC_PASSWORD, Bistro makes one and prints it once.
bistro offsite setup REPO --when "every day at 2am" # secrets on stdin
bistro offsite paths /etc /srv/data
bistro offsite keep 7 4 12 # daily, weekly, monthly
bistro offsite run
bistro offsite test # restore part of the newest snapshot, check it, delete it
bistro offsite restore SNAPSHOT --to /srv/data/restore/offsiteRestores never overwrite files. Trash, caches and earlier restores are never backed up. bistro offsite remove stops the backup. The repository and its data stay.
#Restore Tests
A backup nobody restored is a hope. A monthly pass restores random files from the newest snapshot into a scratch folder. It compares them with the live files, then deletes the folder. A failed test sends an urgent inbox item. The Restore Tests card is on Storage, Backups.
bistro restoretest status
bistro restoretest run docs # test one backup now
bistro restoretest history
bistro restoretest off # on by default#Backups to Another Machine
In a cluster, pair a member to receive daily copies. See Cluster.
bistro fleet backup pair node2 /srv/data/docs
bistro fleet backup statusA USB backup drive is another option. See Storage.
#Object Storage
Run MinIO or Garage as an app, then give each app its own key. The secret goes to the vault, never to a command line or a log.
bistro s3 show # backend, endpoint, buckets, keys
bistro s3 bucket add photos
bistro s3 key add immich photos
bistro s3 key list
bistro s3 key remove immich # buckets and data stayYou can only remove a bucket that is empty.
#Database Care and Replicas
Bistro looks after database apps: PostgreSQL, MariaDB, Valkey or Redis, and SQLite files. A timer runs every Sunday night. Care steps need autopilot set to auto.
bistro dbcare status
bistro dbcare run nextcloud
bistro dbcare slow nextcloud # recent slow queriesA replica is a read-only copy of a PostgreSQL app that follows it. It listens on 127.0.0.1 only. Bistro warns when it falls over 64 MB behind.
bistro replica add nextcloud
bistro replica status
bistro replica remove nextcloud