Repository navigation
v0.2.0
Added
doctornow warns when another machine may still be holding your key. Restoring an ordinary backup leaves the key on the machine the backup came from, and two machines running one key fork your own history.rad backup moveretires the old key, so a home moved here is fine. The check is calledkey copies, and it can only answer for a home restored by this version or later.doctornow names the public repositories with changes no other node has yet, so you can see what a dead disk would take with it. The check is calledsigned refs propagation.schedule --recipientandschedule --plaintext: a scheduled backup can encrypt to an age or ssh key, or skip encryption when the destination already encrypts. Neither needs a passphrase file.
Changed
doctor'sseeding elsewherecheck is now calledother seeds, so the name reads the same whether the check passes or fails. If you match on topic names in--json, this one changed.
Fixed
- A crash or a full disk partway through a restore can no longer leave a home holding neither the old identity nor the new one. The key files and
config.jsonare written beside their targets and renamed into place. restoreno longer gives up on the whole home because one repository failed. The rest are restored, the failures are named, and the run exits3.- A repository whose restore fails partway no longer leaves an empty repository behind, which later backups would have counted as real.
restorewithoutgiton PATH now says how many repositories it could not put back, instead of reporting success.restorechecks that the node is still stopped immediately before it writes, not only before it reads the archive. Unpacking a large archive leaves plenty of time for a node to start.restore --forceover another identity now keeps the public half of the displaced key beside the private half it files away. Only the private half survived before; the public half can be recomputed from it, so nothing was ever lost.restore --replay-policiesno longer throws away whatradsaid about each policy. A seeding or following decision that did not go back is named, and the run exits3. A restore that put back every repository and not one policy used to exit0in silence.- The copy-paste block in
RESTORE.mdthat puts your identity back now refuses to run over a home that already holds a key. It used to print a warning and overwrite the key on the next line. restore.shinside an archive no longer claims to have restored policies that its tier never carried.- A backup no longer fails after the archive is already written. A
.README.txtthat could not be placed beside it, or old archives that could not be pruned, are warnings now instead of an exit1over a good archive. - A repository
gitcannot read no longer stops the whole backup. It is named, carried into the manifest with no refs, and the archive is written and marked incomplete (exit3). - A repository whose visibility
radcould not report is now treated as private and named in a warning. It used to be taken for public, which left it out of--repos private. - A followed peer with no alias no longer fails the backup's read of the policies database.
--stop-nodeasks for the archive passphrase before it stops the node, not while the node is down waiting for somebody to find it.--stop-nodenow reports whenrad node stopitself failed, and gives up at once instead of waiting out the whole timeout on a node that was never going to stop.- The refusal over a home too large for one archive now suggests
--repos privateor--repos mine, which do narrow what is carried. It used to suggest splitting the home across several--reposruns, which the flag cannot do. diffagainst an archive taken with--repos allor--repos seededno longer reports every repository that is not your own as gone, on every run. It exits0when nothing has changed, so a scheduleddiffcan decide whether tonight's backup is needed.doctorno longer says an unencrypted archive holds your private key in the clear when the key inside carries its own passphrase. It now says the archive can be read by anyone who holds it, which is true either way.doctor's remedy for an unprotected key names the key's real path, instead of$RAD_HOME/keys/radicle, which was not a runnable command for anyone who never setRAD_HOME.verify --deepwithoutgiton PATH says how many bundles it could not open, instead of passing.- The warnings about a repository
radcould not describe orgitcould not read no longer promise it a place in the archive when the run was never going to carry it. - Output a machine consumes (JSON reports, listings, recovery sheets) now fails the run when it cannot be written, instead of exiting
0over a truncated report. A pipe closed on purpose, as... | headdoes, still counts as success. --dry-run --jsonprints a JSON report, like every other--json, instead of the human-readable table.create --stdout --jsonis refused, instead of writing the archive and the report into the same stream.diff --jsonnames moved repositories by rid, like every other list in the report, instead of by display name.scheduleno longer accepts aRAD_BACKUP_PASSPHRASEexported in your shell as proof that the timer can get a passphrase, because systemd starts the service from its own environment. One that systemd itself holds still counts, so a working timer is not refused.- A binary or output path containing a space now produces a unit systemd can run and a crontab line a shell can run.
- A recipient holding a character systemd or a shell treats specially (a
$or%, a quote, a backslash) now reaches the scheduled run exactly as you typed it, in both the systemd unit and the printed crontab line. schedule --statussays when systemd could not be asked at all, as over ssh to a headless machine, instead of reporting a running timer asdisabled.- The marker lines in a generated systemd unit now say what is true: a unit that keeps them is rewritten by the next
schedulerun, and deleting them is what preserves a hand edit. The environment file, which every run rewrites in full, no longer carries the marker. - A flag typed before its verb, as in
rad backup --tier full create, now gets a message saying where the flag belongs, instead of an error that reads as if the flag does not exist. - Failing to open a recipient-encrypted archive points at
--identityand the kind of key it was encrypted to, instead of blaming a passphrase that was never involved. - Write and parse errors name the file they are about.
- A node database that cannot be read is named in the error, instead of a bare
unable to open database filewith no path. - An archive whose manifest will not parse is named in the error, instead of a bare
expected value at line 1 column 1with no file attached. - Reading a node database that has a write-ahead log beside it leaves a
-shmfile in the home, and the run now says so instead of staying silent. - The manifest records the hostname on macOS and the BSDs, which have neither
/etc/hostnamenorHOSTNAMEand so recorded nothing at all. - Counts agree with their nouns, so no line reads "1 repositories".
Security
paperwithout--outputno longer writes the sheet to a path taken fromRAD_BACKUP_DIR. A recovery sheet carries the secret key, and could land unasked where backups go, which is often a directory synced off the machine.- A
headin the manifest is refused unless it really names a ref, rather than being handed togit symbolic-ref. A value like-dwould otherwise reach git as one of its own flags, andgit symbolic-refstores whatever it is given without checking, so a value likerefs/../../evilwould write a file next to the repository the next time anything updated that ref. Bothrestoreand the shippedrestore.shcheck it now, and the repository still comes back, without itsHEAD. restore --replay-policiesskips a seeding or following row whose identifierradwould read as a flag, and names what it skipped. Those values come out of the archive, and nothing had vouched for them before they reached a command line.- The shipped
restore.shskips a bundle whose name is not a repository id, rather than trusting the name it was handed.rad backupalready refuses such an archive; the script is what runs whenrad backupis not there.
Full Changelog: v0.1.0...v0.2.0