Skip to content

backupsystemNG 2.3.1

Choose a tag to compare

@jotenakis2 jotenakis2 released this 04 Dec 00:08
· 70 commits to master since this release

backupsystemNG 2.3.1 — an ssh repository is set up in one command.

A patch release about the first hour with a remote repository: init can now
write the two keys the ssh transport needs, and the manual stopped describing a
mount that the code has not required since 2.3.0.

init sets up an ssh repository in one command

--ssh-host and --ssh-path write SSH_HOST and SSH_PATH during the same
run, in the order the validation needs — destination, account, root, then
transport — so this works on a machine that has no configuration yet:

sudo backupsystem init --transport ssh \
    --ssh-host backup@nas.lan \
    --ssh-path /media/diskusb/data/backup/machine

Until now the only way was a provisional local initialisation followed by three
config set, because the validation refuses DEST_TRANSPORT=ssh without the two
keys, and those keys could only be written after initialisation. The four keys
init knows how to write now go through one loop, each validated on a working
copy before being published: a refused value still leaves the configuration
untouched.

With the ssh transport nothing is mounted and DESTINATION is not consulted:
init reads the filesystem fingerprint on the server, writes the repository
identity there, and creates the repository directories there, over the ssh
channel.

The manual no longer asks for a mount that is not needed

The "Initialization with the SSH transport" section claimed that init "is not
run over SSH" and that DESTINATION had to stay a local path — a mount — even
with DEST_TRANSPORT="ssh". That sentence predated the 2026-11-23 change that
removed the local view requirement, was contradicted three lines later by the
"Transport" section of the same README, and sent a first-time reader to mount a
volume for nothing. Both languages now say what the code does, and give the
config set order for a configuration that already exists.

Install

git clone https://github.com/jotenakis2/backupsystemNG
cd backupsystemNG && sudo make install      # /usr/local/bin/{backupsystem,bsng}
sudo bsng init                              # write /etc/backupsystemNG
sudo bsng doctor                            # what works, what is missing

Arch: packaging/aur/PKGBUILD builds the package (or use the release asset
below as source). Dependencies are bash, coreutils, findutils, sed,
awk, grep, tar, zstd, rsync and util-linux; rclone for cloud
uploads, an MTA for mail.

What it does

rsync snapshots of a whole machine — not just files: package inventory, LVM and
RAID definitions, file capabilities, SELinux status, systemd units and cron
tables travel with each snapshot, and RESTORE.md walks the way back. No daemon,
no database: every snapshot is plain directories and a manifest, restorable with
bare rsync.

Assets

backupsystemNG-2.3.1.tar.gz is git archive of the tagged tree, prefixed with
the version, and its .sha256 sits next to it. The GitHub-generated "Source
code" archives differ byte for byte between downloads; use ours if you want a
checksum.

Full detail is in
CHANGELOG.md
(and CHANGELOG-fr.md).