You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is there a reason why the command rustic snapshots --json output is different from the from restic ?
whould it be possible to align rustic output to the restic one ?
The reason if for retro compatibilty between scripts.
To get first snapshot id from the output, it was id="$(echo "$json" | jq -r '.[0].id')", now it is something like id="$(echo "$json" | jq -r '.[0][1][0].id')", and it can be even more nested if you add or remove filters in rustic snapshots command
The reason is that rustic snapshots currently only offers grouped snapshots. The output of restic snapshots -g ... is like rustic's output.
I actually don't know why there is a double array [ [ instead of a single array - I would claim this as a bug.
aawsome
added
C-bug
Category: Something isn't working as expected
A-commands
Area: Related to commands in `rustic`
C-enhancement
Category: New feature or request
and removed
S-triage
Status: Waiting for a maintainer to triage this issue/PR
C-bug
Category: Something isn't working as expected
labels
Dec 2, 2024
whould it be possible to align rustic output to the restic one ?
The reason if for retro compatibilty between scripts.
To get first snapshot id from the output, it was id="$(echo "$json" | jq -r '.[0].id')", now it is something like id="$(echo "$json" | jq -r '.[0][1][0].id')", and it can be even more nested if you add or remove filters in rustic snapshots command
while restic snapshots --json outputs
The text was updated successfully, but these errors were encountered: