Skip to content

v0.1.17

Choose a tag to compare

@github-actions github-actions released this 30 Jul 07:14
· 35 commits to main since this release

Real-time, versioned, one-way backups to local drives and LAN machines.

Download the archive for your OS below, unpack it, and put the
backup-maker binary somewhere on your PATH. There is nothing else to
install, and nothing to install on the destinations. Then:

backup-maker web        # set everything up in the browser

Verify a download against checksums.txt:

sha256sum -c checksums.txt --ignore-missing

Two changes, both for the moment you are holding a drive rather than sitting at
the computer that wrote it: the manual is now on every destination, and a
destination can be named after the drive it actually is.

The manual is on the drive, beside the backups

The whole manual is built into the binary, and until now you read it in the
dashboard — which is served by the computer being backed up. That is exactly
what you have not got in the situation the manual was written for: a backup
drive in your hand, the machine that made it dead, and no idea where to start.

Every destination now carries a copy, in <machine>/.backup-maker-manual/. Open
index.html in any browser: no daemon, no web server, no internet. The status
page sitting beside it links to it, and says so in as many words — "Need to get
these files back, or set up a new computer? The manual is on this drive."

It is written once per version, not on the status page's rhythm: about 2MB,
nearly all of it screenshots, and it only changes when you upgrade. If a
destination was offline or full when it was due, it arrives on a later attempt.

The page only offers the manual where the manual actually is. Somebody
holding a drive whose computer will not start is the last person who should be
sent to a link that does not resolve.

backup-maker docs --export ./manual still writes it anywhere you like.

Destinations can be named after the drive, and no longer collide

The name a network drive was given was the bare share name — a fact about the
server, not about the disk. A box exporting one backups share with a directory
per disk gave every disk on it the same default name, and adding the second was
refused outright, with no suggestion of anything that would work.

  • //pi/backups/drive1 is now called pi-drive1: which box the disk hangs off,
    and which disk. An address rather than a hostname is left out of the name —
    it is longer, harder to read, and wrong the day your router hands out a
    different lease.
  • A name that is taken gets a number on the end. A name you typed is never
    silently changed: it is refused, and the message names one that is free.
  • You can rename a destination — Rename… on its card, or
    backup-maker rename-target backups pi-drive1. Nothing on the drive moves and
    nothing is re-copied, so the drive does not even have to be plugged in.
    Everything that points at it comes along: its stored password, the recorded
    identity of the storage, snapshot schedules aimed at it, and how long ago each
    folder last reached it.

"Which of these two identical cards is this?"

Two cards out of the machine look the same, and a network drive's volume label
cannot be read over SMB at all. So you can now write a note onto the drive
itself:

backup-maker describe-target sdcard "Samsung 64GB card, lives in the laptop"

It appears beside the destination's name on the dashboard, and because it lives
on the storage rather than in this computer's configuration, it is still there
when you plug that card into a machine that has never seen it. It is never sent
anywhere, and it is deliberately left out of the read-only network view.

Two smaller things

Two destinations can no longer share a name. The name keys the recorded
identity of the storage, the share password and every folder's sync clock, so
two of them sharing one meant sharing all three — one destination refused as
foreign storage, or handed the other's password. A hand-edited config.toml with
a duplicate is now refused, naming both.

A renamed destination keeps its history. The clocks that say how long ago
each folder reached it live in memory while the daemon runs, so without care a
rename would have left every folder reading "never synced" to a destination that
has been backed up for months — and a drive nobody had plugged in since would
have looked merely offline rather than overdue.

Upgrading

Nothing to do. Existing destinations keep their names; the new defaults apply
only to destinations you add from now on. The manual appears on each destination
within a few minutes of the daemon starting, which is the only new writing this
version does — about 2MB per computer per destination, once per version.


See the README for setup,
the Raspberry Pi destination guide, and restoring from a backup.