MintSmartBackup

The help desk

Support

Most problems are boring: a path, a port, a token. This page has the short answers, the diagnostics to collect and the way to reach a human being.

all components operational

Chapter 01

Quick answers

The client does not appear in the fleet

The registration never arrived

Check in this order: the server_url (scheme, host, port), the firewall in between, and whether the client is allowed to back up at all (automatic backup is disabled for this client). The server log names the reason.

The fleet says “stale”

The client stopped reporting

The heartbeat arrives every 15 seconds by default. If it stops, the client is not running, the network is gone or the token was rotated. The service has to be running: sc query MintSmartBackup.

The storage does not shrink

The protection is blocking the deletion

Check GET /api/v1/protection. A revision that is younger than immutable_days is never deleted, no matter what the retention says. Then run the collector: POST /api/v1/storage/collect.

The drill fails

The revision is incomplete

The chunks of the revision are missing. A revision whose session was never completed is collected as garbage — the client sends it again on the next run. The catalogue shows which revisions are complete.

Chapter 02

Troubleshooting

The client

# what does the client think? ./mintsmartbackup-client --headless --config client.json # the log of the last run tail -n 60 work/state.log
  • “the source … does not exist” — the path is wrong or the drive is not mounted. The run stops before the upload.
  • “not a single source could be backed up” — every source is missing or unreadable.
  • “the server refused the session” — the token is wrong or the client is disabled for the automatic backup.
  • “the chunk hash mismatch” — the content changed while it was being sent. The client reads the file again.

The server

  • The server does not start. The port is taken, the storage is not writable or the master key cannot be read. The message on the console names the path.
  • “the chunk … failed the integrity check” — a chunk arrived damaged (a proxy, a network). The client sends it again.
  • The console is empty. Check GET /api/v1/health — it works without a token. If the health answers and the fleet is empty, no client has registered yet.

The storage

  • The disk is full. The server answers with an error, the client retries and the run is reported as failed. The anomaly server_storage_low warns before that happens.
  • The storage was moved. The master key has to move with it — without it the chunks cannot be decrypted. It lives in master.key in the storage directory.
  • The storage is read-only. The server stays alive and answers, but every write fails. The error appears in the log of the run.
The one thing to never do

Never delete master.key and never copy the chunks to another server without it. Without the master key the data is still there, but it cannot be read any more.

Chapter 03

Diagnostics

When you open a ticket, these three things make it a ten minute job instead of a two day job.

  1. The health of the server

    curl -s http://<server>:8787/api/v1/health curl -s -H "Authorization: Bearer <api_token>" http://<server>:8787/api/v1/clients

    The first line is the state of the server, the second the fleet with the last error of every client.

  2. The log of the client

    tail -n 200 <work_dir>/state.log

    Every phase of the run is written there: the scan, the number of chunks, the errors.

  3. The findings

    curl -s -H "Authorization: Bearer <api_token>" http://<server>:8787/api/v1/anomalies

    The anomalies carry a severity, a state and — most importantly — the action to take.

Never send the master key, the session tokens or the api token in a ticket. They are secrets: rotate the token of the client and the management token of the server after a leak.

Chapter 04

Frequently asked questions

Is there a limit to the size of a backup?
No hard limit. The chunks are streamed, never loaded into memory as a whole. The practical limit is the disk of the server and the time of the run.
Can the client back up a database that is running?
A file that is written while it is read is read again; if it keeps changing, it is left out of the revision and reported as an error. For a consistent copy of a live database you need a snapshot (VSS on Windows, a file system snapshot on Linux) — application aware backup is on the roadmap and is marked as missing in the comparison.
What happens when the server and the client are on different machines?
That is the normal case. The client registers itself, the server stores the data per client (the folder is named after the IP, with a suffix for the second client behind the same address) and the traffic is encrypted on the way.
How do I move the data to another server?
Copy the whole storage directory including master.key, start the server on the new machine with the same storage and the same configuration, and the clients continue. The revisions and the registry are part of the storage.
Can two servers share a storage?
No. The storage is not built for concurrent access from several processes. Use one server per storage.
Does the client need the internet?
No. It talks to one server. Everything else — the console, the reports, the notifications to a webhook — runs on your own machines; only an SMTP server outside your network needs the internet.
How do I uninstall it?
Stop the service (sc delete MintSmartBackup), remove the client. On the server: stop the process and delete the storage directory (and keep the master key somewhere safe, if you want to be able to read the old data).

Chapter 05

Contact

Three ways, depending on how urgent it is.

A machine is not protected

The incident desk

For a fleet that is not backing up right now. Include the three diagnostics of the chapter above — the answer comes in hours.

incident@mintsmartbackup.example

Something does not work as documented

The support desk

For a bug, a question about the configuration or a request for a feature. The answer comes in days, the bug goes into the next release.

support@mintsmartbackup.example

You want to look inside

The sources

The whole product is in the repository: the server, the client, the 212 tests and the report of the QA round. If you can read Rust, you can verify every claim on this page.

github.com/…/MintSmartBackup

Severity

P1 — no machine is protected or a restore fails. P2 — a single client is affected. P3 — a question, a feature request, a documentation error. Please say which one it is; it decides the queue.