| Crates.io | restic_ez |
| lib.rs | restic_ez |
| version | 0.5.1 |
| created_at | 2021-09-05 21:45:45.270625+00 |
| updated_at | 2025-12-28 18:26:17.128051+00 |
| description | This crate provides a simple configuration loader and API around `restic` |
| homepage | |
| repository | https://github.com/KizzyCode/ResticEz-rust |
| max_upload_size | |
| id | 447298 |
| size | 55,341 |
restic-ezWelcome to restic-ez 🎉
restic-ez provides a simple configuration loader and CLI-API around restic.
[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" }
[commands]
preexec = [
"touch first-preexec-command",
"sleep 3",
"touch second-preexec-command",
]
postexec = [
"touch first-postexec-command",
"sleep 3",
"touch second-postexec-command",
]
restic-ez v0.5.1
Usage: restic-ez [/my/customconfig.toml] [verb]
Verbs:
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
unlock Breaks a stale lock
help Displays this help
Config:
Explicitly specify the configuration file by passing the path as first argument:
/my/customconfig.toml An explicit path to a *.toml configuration file
/my/customconfig.conf An explicit path to a *.conf configuration file
Explicitly 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 configuration files:
./restic-ez.conf
./restic-ez.toml
./.restic-ez.conf
./.restic-ez.toml