{ "name": "rustic", "version": "0.11.4", "summary": "rustic: encrypted, deduplicated backups in restic's repository format, to local folders, SFTP, WebDAV and cloud stores (Rust)", "category": "tool", "license": "Apache-2.0 OR MIT", "homepage": "https://rustic.cli.rs/", "source": { "url": "https://github.com/rustic-rs/rustic/archive/refs/tags/v0.11.4.tar.gz", "sha256": "ea1796a66c22e2cd0232ee4d3e18cf95c7eb8608a465481023a6422f4720d2c3" }, "watch": {"kind": "github-release", "repo": "rustic-rs/rustic", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": true, "check": "bin/rustic --version | has -x 'rustic 0.11.4' && t=$(mktemp -d) && mkdir -p \"$t/src/sub\" && echo 'bvs file one' > \"$t/src/a.txt\" && head -c 200000 /dev/urandom > \"$t/src/sub/b.bin\" && export HOME=$t XDG_CONFIG_HOME=$t/.config XDG_CACHE_HOME=$t/.cache RUSTIC_REPOSITORY=$t/repo RUSTIC_PASSWORD=bvs-pass && bin/rustic init < /dev/null > \"$t/log\" 2>&1 && bin/rustic backup \"$t/src\" < /dev/null >> \"$t/log\" 2>&1 && bin/rustic snapshots < /dev/null 2>&1 | has '^1 snapshot(s)$' && bin/rustic restore latest \"$t/out\" < /dev/null >> \"$t/log\" 2>&1 && cmp \"$t/src/a.txt\" \"$t/out$t/src/a.txt\" && cmp \"$t/src/sub/b.bin\" \"$t/out$t/src/sub/b.bin\" && bin/rustic check < /dev/null >> \"$t/log\" 2>&1 && ! RUSTIC_PASSWORD=wrong-pass bin/rustic snapshots < /dev/null > \"$t/bad\" 2>&1 && echo 'rustic 0.11.4: an encrypted repository made, a folder backed up, its snapshot listed, restored byte for byte and checked; a wrong password refused'" }