Skip to main content

Crate vivo

Crate vivo 

Source

Re-exports§

pub use crate::backup_config::age_keys_path;
pub use crate::backup_config::age_public_key;
pub use crate::backup_config::decrypt_sops_file;
pub use crate::backup_config::import_b2_credentials;
pub use crate::backup_config::parse_secrets;
pub use crate::backup_config::set_restic_password;
pub use crate::backup_config::update_s3_in_secrets;
pub use crate::backup_config::BackupConfig;
pub use crate::backup_config::LoadConfigError;
pub use crate::backup_config::backup::ensure_path;
pub use crate::backup_config::backup::expand_env_vars;
pub use config_editor::add_task;
pub use config_editor::add_remote;
pub use config_editor::remove_task;
pub use config_editor::remove_remote;
pub use config_editor::set_default_task;
pub use config_editor::TaskSpec;
pub use config_editor::RemoteSpec;

Modules§

backup_config
config_editor
doctor
folders
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.
mount
notice
Explaining a run that was held back, as information rather than as an error.
recovery
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.
remote
remote_setup
Guided remote setup and testing, shared by vivo init, vivo remote, and the TUI so they all behave the same way.
repos
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.
schedule
vivo schedule: runs vivo on a schedule without the user writing launchd, systemd or cron config by hand.
sources
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.
state
Remembers how each task’s last run went, so vivo status can answer “is my backup actually working?” without re-running anything.
step
templates
Starting points for a new task: sensible settings for a kind of backup, so nobody has to learn six config options to get a good photos backup.
tui
ui
update

Structs§

Secrets
VivoConfig

Functions§

build_cli
config_path_from
secrets_path_from
xdg_config_home