Skip to content

Commit

Permalink
fix restic_diff function
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWolf-01 committed Feb 26, 2024
1 parent 81fcef5 commit d571f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/functions
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function tailmail() {
# Show the diff between the latest two snapshots of restic repository
# https://forum.restic.net/t/how-can-i-see-the-delta-between-two-snapshots/5258/4
function restic_diff() {
restic diff --no-lock $(restic snapshots --no-lock --json --latest 2|jq --raw-output '(map(.id) | join(" "))') "$@"
restic diff --no-lock $(restic snapshots --no-lock --json --latest 2 | jq --raw-output 'map(.id) | .[-2:] | join(" ")') "$@"
}
# show the n biggest files within a restic repo; default 10
function restic_lsfs() {
Expand Down

0 comments on commit d571f75

Please sign in to comment.