Can't use it without absolute path to the binary
This is wery wired, frankly.
~ $ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
~ $ locate bin/rustic
/usr/local/bin/rustic
~ $ which rustic
/usr/local/bin/rustic
~ $ rustic ls latest:/
thread 'main' panicked at /usr/obj/ports/rustic-0.9.5/rustic-0.9.5/modcargo-crates/abscissa_core-0.8.1/src/path.rs:73:13:
error canonicalizing application path: No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
~ $ /usr/local/bin/rustic ls latest:/
[00:00:02] reading index... ████████████████████████████████████████ 2594/2594
[00:00:00] getting latest snapshot... ████████████████████████████████████████ 181/181
etc
home
root
usr
var
~ $
I do have installed rustic on my OpenBSD laptop from ports with version 0.9.5.
BTW:
~ $ rustic lss latest:/
error: unrecognized subcommand 'latest:/'
tip: a similar subcommand exists: 'ls'
Usage: rustic [OPTIONS] [MOUNT] <COMMAND>
For more information, try '--help'.
~ $
~ $ rustic lss latest:/ error: unrecognized subcommand 'latest:/'
This bug has been already fixed in current main - try out the latest nightly build. It correctly prints:
error: unrecognized subcommand 'lss'
tip: some similar subcommands exist: 'list', 'ls'
Thanks @catap for opening this bug report. I think this is related to a bug/feature in abscissa...
@aawsome just build a local root https://github.com/rustic-rs/rustic/commit/3a3b5b187e96dd3a698bac8229c0144b48a16aa8 with https://github.com/rustic-rs/rustic_core/commit/64d052d5e3094a79b2ba165a977de67c2275bbc5
-
I confirm that it returns
unrecognized subcommand 'lss' -
Anyway, the absolute path is still requried.