Asking the user for the folders a task backs up: tab-completion, ~ and
pasted/dragged paths understood, a warning for a folder that doesn’t exist,
and any number of them. Shared by vivo manage and vivo task add.
Off-site recovery copies: next to each remote’s repository, vivo keeps the
two small files needed to set up a replacement machine — the (already
sops-encrypted) secrets.yaml and an age-encrypted backup.kdl.
Reading from restic repositories: finds the local and remote repository of
each task, builds the environment restic needs for them, and lists snapshots.
Shared by vivo snapshots, vivo restore and vivo status.
Checking that the folders a task backs up can actually be read, before and
after a backup. restic treats an unreadable source as a warning (exit code
3) and still saves a snapshot, so without a check a task whose only folder
is blocked, such as a Photos library on macOS without Full Disk Access,
“succeeds” with an empty backup.