Files
restic/cmd/restic
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
..
2020-12-29 20:20:05 +01:00
2017-07-23 14:19:13 +02:00
2021-01-30 20:02:37 +01:00
2021-03-24 10:44:47 -04:00
2021-01-30 20:02:37 +01:00
2020-08-30 16:00:48 +02:00
2020-12-19 01:09:47 +03:00
2021-01-30 20:02:37 +01:00
2021-01-30 20:02:37 +01:00
2020-10-09 22:39:06 +02:00
2020-10-09 22:39:06 +02:00
2020-12-23 23:26:04 +03:00
2021-01-30 20:02:37 +01:00
2021-01-31 14:22:57 +01:00
2021-01-30 20:02:37 +01:00
2020-12-29 17:12:46 +01:00
2021-01-30 20:02:37 +01:00
2017-07-23 14:19:13 +02:00
2020-11-28 17:00:31 +01:00
2021-01-30 20:02:37 +01:00
2020-10-09 22:37:56 +02:00
2017-07-23 14:19:13 +02:00
2020-08-04 08:38:57 +02:00
2018-04-30 14:19:04 +02:00
2018-04-30 14:19:04 +02:00
2021-03-08 22:41:13 +01:00