-
|
Is there a way to choose columns in the It is a special case, but while writing the docs, I often find myself piping the $ rustic snapshots | cut -d '|' -f 1,2, 4-
snapshots for (host [kasimir], label [], paths [Project])
| ID | Host | Label | Tags | Paths | Files | Dirs | Size |
|----------|---------|-------|------|---------|-------|------|-----------|
| 7f3eef1f | kasimir | | | Project | 507 | 87 | 524.0 KiB |
| 5109f5fe | kasimir | | | Project | 508 | 87 | 524.0 KiB |
| ca466029 | kasimir | | | Project | 509 | 87 | 524.0 KiB |
3 snapshot(s)Questions to consider:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
$ cat ~/.local/bin/rustic
#!/bin/bash
RUSTIC=/usr/local/cargo/bin/rustic
${RUSTIC} "$@" | cut -d'|' -f 1,2,4-:D |
Beta Was this translation helpful? Give feedback.
-
|
There is no way to customize that currently. If anyone comes up with a PR, we'll happily add this, but it's at least not on my personal TODO list ;-) In any case it wouldn't affect json output. But I think if we customize this, we should take into account the interactive mode ( |
Beta Was this translation helpful? Give feedback.
There is no way to customize that currently. If anyone comes up with a PR, we'll happily add this, but it's at least not on my personal TODO list ;-)
In any case it wouldn't affect json output. But I think if we customize this, we should take into account the interactive mode (
snapshots -i)