restic_ez

Crates.iorestic_ez
lib.rsrestic_ez
version0.3.0
sourcesrc
created_at2021-09-05 21:45:45.270625
updated_at2021-11-18 23:10:41.775109
descriptionThis crate provides a simple configuration loader and API around `restic`
homepage
repositoryhttps://github.com/KizzyCode/ResticEz-rust
max_upload_size
id447298
size45,692
Keziah Biermann (KizzyCode)

documentation

README

License BSD-2-Clause License MIT AppVeyor CI docs.rs crates.io Download numbers dependency status

restic-ez

Welcome to restic-ez 🎉

restic-ez provides a simple configuration loader and CLI-API around restic.

Configuration example

[restic]
dirs = "/Development"
repo = "s3:https://<url to s3 bucket>"
safe_restore = true

[restic.flags]
backup = [
    "--exclude-caches",
    "--iexclude", "/Development/Code/Swift/*/.swiftpm",
    "--iexclude", "/Development/Code/Swift/*/.build"
]

[credentials.restic]
command = "set -euo pipefail; pass <path to password file> | sed -n 1p"

[credentials.s3]
id = { value = "<insert your s3 key id here>" }
secret = { command = "set -euo pipefail; pass <path to password file> | sed -n 2p" }

Man page

Usage: restic-ez [verb]

Possible verbs are:
    create      Creates a new archive
    list        Lists the existing archives
    restore     Restores the latest archiv tagged with \"backup\"
    shell       Opens a shell session configured for easy manual restic invocation
    check       Checks the repository for consistency
    prune       Removes all unused chunks from the repository
    break-lock  Breaks a stale lock
    help        Displays this help

Specify the configuration using environment variables:
    RESTIC_EZ_CONFIG_TOML  Specifies the raw configuration toml string
    RESTIC_EZ_CONFIG       Specifies a custom path to a configuration file

Per default, restic-ez looks for the following config files:
    ./restic-ez
    ./restic-ez.conf
    ./restic-ez.toml
    ./.restic-ez
    ./.restic-ez.conf
    ./.restic-ez.toml
Commit count: 13

cargo fmt