mirror of
https://github.com/restic/restic.git
synced 2026-02-03 20:39:52 -05:00
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>
|
||
|---|---|---|
| .. | ||
| 0.6.0_2017-05-29 | ||
| 0.6.1_2017-06-01 | ||
| 0.7.0_2017-07-01 | ||
| 0.7.1_2017-07-22 | ||
| 0.7.2_2017-09-13 | ||
| 0.7.3_2017-09-20 | ||
| 0.8.0_2017-11-26 | ||
| 0.8.1_2017-12-27 | ||
| 0.8.2_2018-02-17 | ||
| 0.8.3_2018-02-26 | ||
| 0.9.0_2018-05-21 | ||
| 0.9.1_2018-06-10 | ||
| 0.9.2_2018-08-06 | ||
| 0.9.3_2018-10-13 | ||
| 0.9.4_2019-01-06 | ||
| 0.9.5_2019-04-23 | ||
| 0.9.6_2019-11-22 | ||
| 0.10.0_2020-09-19 | ||
| 0.11.0_2020-11-05 | ||
| 0.12.0_2021-02-14 | ||
| unreleased | ||
| changelog-github.tmpl | ||
| CHANGELOG.tmpl | ||
| TEMPLATE | ||