-
-
Notifications
You must be signed in to change notification settings - Fork 90
Description
Describe the bug
Using configuration option forget: prune for a backup that uses copy results in an exit status 1 when collecting packs for deletion and repacking
Expected behavior
Pruning is done on the primary repository and then copied to the other repository without error
Environment
- OS: Ubuntu 22.04.5 LTS
- Version: autorestic version 1.8.3
Additional context
I've been using autorestic successfully for many years and recently reconfigured several locations to use copy instead of multiple repositories. My understanding is that all operations are done on the fast/local repository and then copied to slower/remote locations. This worked fine for a few weeks but has recently started failing during the step collecting packs for deletion and repacking which eventually leads to an exit status 1 and leaves the lock in place on the remote repository, causing all remaining backups to fail due to that stale lock. This could be due to the change from normal repository to copy.
For backend "zeus" #<--- this is now a copy repository and was a normal one before
> Executing: /usr/local/bin/restic --cache-dir /mnt/fastnvme/restic/cache forget --tag ar:location:grocy_configs --prune --keep-last 5 --keep-monthly 12 --keep-yearly 7 --keep-daily 4 --keep-within 14d --keep-weekly 1
Applying Policy: keep 5 latest, 4 daily, 1 weekly, 12 monthly, 7 yearly snapshots and all snapshots within 14d of the newest
keep 25 snapshots:
ID Time Host Tags Reasons Paths Size
--------------------------------------------------------------------------------------------------------------------------------------------
4d9e0078 2023-08-07 16:43:52 myhost.tld ar:location:grocy_configs yearly snapshot /mnt/fastnvme/docker-data/grocy
6de0afc4 2023-12-31 02:08:51 myhost.tld ar:cron,ar:location:grocy_configs yearly snapshot /mnt/fastnvme/docker-data/grocy
d80e4fee 2024-06-30 02:05:01 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
774caccb 2024-07-31 02:08:54 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
b9adfb95 2024-08-31 02:09:22 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
d8a7191f 2024-09-30 02:07:09 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
419b1b5d 2024-10-31 02:15:33 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
d2e2325a 2024-11-30 02:13:18 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
b18c7c43 2024-12-31 02:18:19 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
yearly snapshot
34ac7771 2025-01-31 02:18:59 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy
cbc2e032 2025-02-28 03:17:30 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy 119.151 MiB
7d874736 2025-03-31 02:20:57 myhost.tld ar:cron,ar:location:grocy_configs monthly snapshot /mnt/fastnvme/docker-data/grocy 121.759 MiB
f064254b 2025-04-19 02:19:36 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 128.386 MiB
0bb9d07f 2025-04-20 02:06:13 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 127.425 MiB
58947e0f 2025-04-21 02:05:01 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 127.836 MiB
955d3a53 2025-04-22 02:55:42 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 128.879 MiB
d786b62c 2025-04-23 02:56:03 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 128.964 MiB
ec1455e1 2025-04-24 02:39:30 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 129.074 MiB
9116e528 2025-04-25 02:05:01 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 129.917 MiB
a00f0dc0 2025-04-26 02:24:57 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 130.297 MiB
1c46c59c 2025-04-27 02:39:15 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 124.817 MiB
last snapshot
f766f508 2025-04-28 02:05:57 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 126.013 MiB
last snapshot
daily snapshot
da0052cf 2025-04-29 02:05:01 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 126.141 MiB
last snapshot
daily snapshot
59c9a7d6 2025-04-30 02:05:34 myhost.tld ar:cron,ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 126.150 MiB
last snapshot
daily snapshot
monthly snapshot
47a82ff2 2025-05-02 08:22:27 myhost.tld ar:location:grocy_configs within 14d /mnt/fastnvme/docker-data/grocy 126.229 MiB
last snapshot
daily snapshot
weekly snapshot
monthly snapshot
yearly snapshot
--------------------------------------------------------------------------------------------------------------------------------------------
25 snapshots
remove 4 snapshots:
ID Time Host Tags Paths Size
--------------------------------------------------------------------------------------------------------------------------
6b7036bc 2024-05-31 02:08:21 myhost.tld ar:cron,ar:location:grocy_configs /mnt/fastnvme/docker-data/grocy
7a816daf 2025-04-16 02:11:28 myhost.tld ar:cron,ar:location:grocy_configs /mnt/fastnvme/docker-data/grocy 126.262 MiB
34db2ad4 2025-04-17 02:33:57 myhost.tld ar:cron,ar:location:grocy_configs /mnt/fastnvme/docker-data/grocy 126.613 MiB
a92e3b4f 2025-04-18 02:14:42 myhost.tld ar:cron,ar:location:grocy_configs /mnt/fastnvme/docker-data/grocy 127.596 MiB
--------------------------------------------------------------------------------------------------------------------------
4 snapshots
[0:00] 100.00% 4 / 4 files deleted
4 snapshots have been removed, running prune
loading indexes...
loading all snapshots...
finding data that is still in use for 769 snapshots
[0:36] 100.00% 769 / 769 snapshots
searching used packs...
collecting packs for deletion and repacking
[15:03] 0.00% 0 / 20414 packs processed
exit status 1