From d106ad6921823fd3bc2e6dcf9ae9b853f6ab68c8 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 18 May 2024 23:28:35 +0200 Subject: [PATCH] restic: regenerate snapshot keep policy golden test files --- .../restic/testdata/policy_keep_snapshots_36 | 412 ++++++++++---- .../restic/testdata/policy_keep_snapshots_37 | 515 ++++++++++++++---- .../restic/testdata/policy_keep_snapshots_38 | 362 ++++++++---- .../restic/testdata/policy_keep_snapshots_39 | 67 ++- 4 files changed, 1045 insertions(+), 311 deletions(-) diff --git a/internal/restic/testdata/policy_keep_snapshots_36 b/internal/restic/testdata/policy_keep_snapshots_36 index 75a3a5b46..cce4cf537 100644 --- a/internal/restic/testdata/policy_keep_snapshots_36 +++ b/internal/restic/testdata/policy_keep_snapshots_36 @@ -590,7 +590,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -601,7 +603,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -612,7 +616,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -623,7 +629,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -634,7 +642,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -645,7 +655,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -656,7 +668,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -667,7 +681,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -678,7 +694,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -689,7 +707,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -700,7 +720,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -711,7 +733,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -722,7 +746,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -733,7 +759,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -744,7 +772,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -755,7 +785,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -766,7 +798,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -777,7 +811,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -788,7 +824,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -799,7 +837,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -810,7 +850,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -821,7 +863,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -832,7 +876,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -843,7 +889,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -854,7 +902,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -865,7 +915,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -876,7 +928,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -887,7 +941,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -898,7 +954,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -909,7 +967,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -920,7 +980,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -935,7 +997,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -950,7 +1014,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -968,7 +1034,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -979,7 +1047,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -990,7 +1060,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1001,7 +1073,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1012,7 +1086,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1023,7 +1099,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1034,7 +1112,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1045,7 +1125,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1056,7 +1138,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1067,7 +1151,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1078,7 +1164,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1089,7 +1177,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1100,7 +1190,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1111,7 +1203,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1122,7 +1216,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1133,7 +1229,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1144,7 +1242,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1155,7 +1255,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1166,7 +1268,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1177,7 +1281,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1188,7 +1294,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1199,7 +1307,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1210,7 +1320,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1221,7 +1333,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1232,7 +1346,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1243,7 +1359,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1254,7 +1372,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1265,7 +1385,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1276,7 +1398,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1287,7 +1411,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1298,7 +1424,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1309,7 +1437,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1320,7 +1450,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1331,7 +1463,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1346,7 +1480,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1360,7 +1496,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1374,7 +1512,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1388,7 +1528,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1402,7 +1544,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1416,7 +1560,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1430,7 +1576,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1444,7 +1592,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1458,7 +1608,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1472,7 +1624,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1486,7 +1640,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1500,7 +1656,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1514,7 +1672,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1528,7 +1688,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1542,7 +1704,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1556,7 +1720,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1567,7 +1733,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1578,7 +1746,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1589,7 +1759,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1600,7 +1772,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1611,7 +1785,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1622,7 +1798,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1633,7 +1811,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1644,7 +1824,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1655,7 +1837,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1666,7 +1850,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1677,7 +1863,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1688,7 +1876,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1699,7 +1889,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1710,7 +1902,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1721,7 +1915,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1732,7 +1928,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1743,7 +1941,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1754,7 +1954,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1765,7 +1967,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } }, { "snapshot": { @@ -1776,7 +1980,9 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1} + "counters": { + "last": -1 + } } ] } \ No newline at end of file diff --git a/internal/restic/testdata/policy_keep_snapshots_37 b/internal/restic/testdata/policy_keep_snapshots_37 index f6ffa40ea..9856a83d6 100644 --- a/internal/restic/testdata/policy_keep_snapshots_37 +++ b/internal/restic/testdata/policy_keep_snapshots_37 @@ -591,7 +591,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -603,7 +606,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -614,7 +620,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -626,7 +635,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -638,7 +650,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -650,7 +665,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -662,7 +680,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -674,7 +695,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -686,7 +710,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -698,7 +725,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -709,7 +739,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -720,7 +753,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -731,7 +767,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -743,7 +782,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -755,7 +797,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -767,7 +812,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -779,7 +827,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -791,7 +842,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -802,7 +856,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -814,7 +871,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -826,7 +886,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -838,7 +901,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -850,7 +916,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -862,7 +931,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -874,7 +946,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -885,7 +960,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -897,7 +975,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -909,7 +990,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -921,7 +1005,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -933,7 +1020,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -944,7 +1034,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -959,7 +1052,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -974,7 +1070,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -992,7 +1091,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1004,7 +1106,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1016,7 +1121,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1028,7 +1136,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1040,7 +1151,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1052,7 +1166,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1064,7 +1181,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1076,7 +1196,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1088,7 +1211,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1100,7 +1226,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1112,7 +1241,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1124,7 +1256,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1136,7 +1271,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1148,7 +1286,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1160,7 +1301,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1172,7 +1316,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1184,7 +1331,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1196,7 +1346,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1208,7 +1361,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1220,7 +1376,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1232,7 +1391,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1244,7 +1406,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1256,7 +1421,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1268,7 +1436,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1280,7 +1451,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1292,7 +1466,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1303,7 +1480,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1315,7 +1495,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1327,7 +1510,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1339,7 +1525,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1351,7 +1540,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1363,7 +1555,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1375,7 +1570,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1387,7 +1585,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1403,7 +1604,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1418,7 +1622,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1432,7 +1639,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1447,7 +1657,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1462,7 +1675,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1477,7 +1693,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1492,7 +1711,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1507,7 +1729,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1522,7 +1747,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1537,7 +1765,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1552,7 +1783,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1567,7 +1801,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1582,7 +1819,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1597,7 +1837,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1612,7 +1855,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1627,7 +1873,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1639,7 +1888,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1651,7 +1903,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1663,7 +1918,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1675,7 +1933,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1687,7 +1948,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1699,7 +1963,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1711,7 +1978,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1723,7 +1993,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1735,7 +2008,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1747,7 +2023,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1759,7 +2038,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1771,7 +2053,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1783,7 +2068,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1795,7 +2083,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1807,7 +2098,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1819,7 +2113,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1830,7 +2127,10 @@ "matches": [ "last snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1842,7 +2142,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1854,7 +2157,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } }, { "snapshot": { @@ -1866,7 +2172,10 @@ "last snapshot", "hourly snapshot" ], - "counters": {"Last": -1, "Hourly": -1} + "counters": { + "last": -1, + "hourly": -1 + } } ] } \ No newline at end of file diff --git a/internal/restic/testdata/policy_keep_snapshots_38 b/internal/restic/testdata/policy_keep_snapshots_38 index 6bfdd57f1..f5d7136d4 100644 --- a/internal/restic/testdata/policy_keep_snapshots_38 +++ b/internal/restic/testdata/policy_keep_snapshots_38 @@ -507,7 +507,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -518,7 +520,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -529,7 +533,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -540,7 +546,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -551,7 +559,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -562,7 +572,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -573,7 +585,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -584,7 +598,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -595,7 +611,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -606,7 +624,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -617,7 +637,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -628,7 +650,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -639,7 +663,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -650,7 +676,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -661,7 +689,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -672,7 +702,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -683,7 +715,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -694,7 +728,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -705,7 +741,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -716,7 +754,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -727,7 +767,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -738,7 +780,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -749,7 +793,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -760,7 +806,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -771,7 +819,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -782,7 +832,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -793,7 +845,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -804,7 +858,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -815,7 +871,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -826,7 +884,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -837,7 +897,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -848,7 +910,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -859,7 +923,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -870,7 +936,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -881,7 +949,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -892,7 +962,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -903,7 +975,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -914,7 +988,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -925,7 +1001,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -936,7 +1014,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -947,7 +1027,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -958,7 +1040,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -969,7 +1053,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -980,7 +1066,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -991,7 +1079,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1002,7 +1092,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1013,7 +1105,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1024,7 +1118,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1035,7 +1131,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1046,7 +1144,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1057,7 +1157,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1068,7 +1170,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1079,7 +1183,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1090,7 +1196,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1101,7 +1209,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1112,7 +1222,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1127,7 +1239,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1141,7 +1255,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1155,7 +1271,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1169,7 +1287,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1183,7 +1303,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1197,7 +1319,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1211,7 +1335,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1225,7 +1351,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1239,7 +1367,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1253,7 +1383,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1267,7 +1399,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1281,7 +1415,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1295,7 +1431,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1309,7 +1447,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1323,7 +1463,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1334,7 +1476,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1345,7 +1489,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1356,7 +1502,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1367,7 +1515,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1378,7 +1528,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1389,7 +1541,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1400,7 +1554,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1411,7 +1567,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1422,7 +1580,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1433,7 +1593,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1444,7 +1606,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1455,7 +1619,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1466,7 +1632,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1477,7 +1645,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1488,7 +1658,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1499,7 +1671,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1510,7 +1684,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1521,7 +1697,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } }, { "snapshot": { @@ -1532,7 +1710,9 @@ "matches": [ "hourly snapshot" ], - "counters": {"Hourly": -1} + "counters": { + "hourly": -1 + } } ] -} +} \ No newline at end of file diff --git a/internal/restic/testdata/policy_keep_snapshots_39 b/internal/restic/testdata/policy_keep_snapshots_39 index 4b111503b..f5fb4b1bf 100644 --- a/internal/restic/testdata/policy_keep_snapshots_39 +++ b/internal/restic/testdata/policy_keep_snapshots_39 @@ -74,10 +74,15 @@ "matches": [ "daily snapshot", "weekly snapshot", - "monthly snapshot", - "yearly snapshot" + "monthly snapshot", + "yearly snapshot" ], - "counters": {"Daily": 2, "Weekly": 1, "Monthly": -1, "Yearly": -1} + "counters": { + "daily": 2, + "weekly": 1, + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -89,7 +94,11 @@ "daily snapshot", "weekly snapshot" ], - "counters": {"Daily": 1, "Monthly": -1, "Yearly": -1} + "counters": { + "daily": 1, + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -100,7 +109,10 @@ "matches": [ "daily snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -112,7 +124,10 @@ "monthly snapshot", "yearly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -123,7 +138,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -134,7 +152,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -145,7 +166,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -157,7 +181,10 @@ "monthly snapshot", "yearly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -171,7 +198,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -182,7 +212,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -193,7 +226,10 @@ "matches": [ "monthly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } }, { "snapshot": { @@ -205,7 +241,10 @@ "monthly snapshot", "yearly snapshot" ], - "counters": {"Monthly": -1, "Yearly": -1} + "counters": { + "monthly": -1, + "yearly": -1 + } } ] } \ No newline at end of file