Backup planning for Sambee is mainly about preserving the deployment state that the service cannot recreate on its own.
What Must Be Protected
At minimum, protect:
data/sambee.db- your local
docker-compose.yml - your local
config.toml, if you use one
The database is the most important part because it contains users, connections, security keys, and encrypted passwords.
Simple Backup Pattern
The simplest safe backup is a cold backup:
- Stop the Sambee service.
- Copy
data/,docker-compose.yml, andconfig.tomlif you use it. - Store the backup on different storage from the Sambee host.
Example:
docker compose stop sambee
cp -a data docker-compose.yml /path/to/backup/
# If You Use Config.toml, Back It up Too.
# Cp -a Config.toml /Path/to/backup/
docker compose up -d sambee
If you do not use config.toml, skip that copy step.
Basic Restore Flow
At minimum, a restore should look like this:
- Recreate the deployment directory on the replacement host.
- Restore
data/,docker-compose.yml, andconfig.tomlif you use it. - Restore ownership on
data/if needed so the container can write to it. - Start Sambee with
docker compose up -d. - Confirm sign-in, logs, and a basic SMB workflow.