1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-26 17:57:50 +00:00
restic/changelog/unreleased
Sébastien Gross 2a92b68e65 cmd/snapshots: Add option to limit snapshots list
This patch adds a `--latest` option to limit snapshots list to the n
last snapshots. It is very similar to the `--last` one but does not
limit to one entry. It also deprecates the `--last` flag usage in
favor of `--latest 1`

Output example:

    $ restic snapshots --latest 2
    repository 0d3eb989 opened successfully, password is correct
    ID        Time                 Host        Tags        Paths
    ------------------------------------------------------------
    5a33bdcc  2020-12-14 12:30:00  local                   /home
    73887d8e  2020-12-15 12:30:00  local                   /home
    ------------------------------------------------------------
    2 snapshots

Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
2021-05-13 20:18:23 +02:00
..
.gitignore Add gitignore to changelog/unreleased 2020-11-05 09:01:32 +01:00
issue-3214 Add link to pr to changelog 2021-02-28 00:40:52 +01:00
issue-3284 backup: Correctly handle --quiet flag 2021-02-15 22:14:58 +01:00
issue-3293 Add repositoryFile2 option 2021-03-08 22:41:13 +01:00
issue-3296 check: Fix crash of --read-data-subset=x% on empty repository 2021-02-27 16:05:36 +01:00
issue-3302 local: Ignore files in intermediate folders 2021-02-27 13:47:55 +01:00
issue-3334 Display 'created new cache in ' message only if output is terminal 2021-03-22 11:31:08 +02:00
pull-3167 cmd/snapshots: Add option to limit snapshots list 2021-05-13 20:18:23 +02:00
pull-3305 Tweak changelog 2021-03-08 22:11:34 +01:00