Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prune --dry-run issues warm-up command #1428

Open
Anthchirp opened this issue Mar 9, 2025 · 1 comment
Open

prune --dry-run issues warm-up command #1428

Anthchirp opened this issue Mar 9, 2025 · 1 comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR

Comments

@Anthchirp
Copy link

Anthchirp commented Mar 9, 2025

When using hot/cold storage rustic prune --dry-run will issue warmup commands.

$ rustic -V
rustic 0.9.5
$ rustic prune --dry-run
[INFO] using config /etc/rustic/rustic.toml
[INFO] using warm-up command /etc/rustic/warmup.sh '%id'
[INFO] repository rclone:rustic-cold:#rclone:rustic-hot:: password is correct.
[INFO] using cache at /root/.cache/rustic/63f34d4a000baa0a279bf2e06728c44ff8a852e184ef0e04d992067bf1f30fd5
[00:00:00] reading index...               ████████████████████████████████████████          7/7
[00:00:00] reading snapshots...           ████████████████████████████████████████          2/2
[00:00:04] finding used blobs...          ████████████████████████████████████████          2/2
[00:00:00] getting packs from repository...
to repack:          3 packs,       2411 blobs,    2.0 MiB
this removes:                        17 blobs,   74.9 kiB
to delete:          0 packs,          0 blobs,        0 B
unindexed:          0 packs,         ?? blobs,        0 B
total prune:                         17 blobs,   74.9 kiB
remaining:                       133080 blobs,    2.7 GiB
unused size after prune:   19.6 MiB (0.71% of remaining size)

packs marked for deletion:          0,        0 B
 - complete deletion:               0,        0 B
 - keep marked:                     0,        0 B
 - recover:                         0,        0 B
[00:00:00] warming up packs...            ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░          0/3
Warmup request for e139768de46015154fe83af4ce4f3c7e562588192b7983c88e3cca37c596f79d
Warmup request for f5f17aee0cf85d8c3833257fcdc42c3d5f894c6c2b4a213cbe7ac30b741078c0
Warmup request for 3c84f56aa7aee92f2791afe8dc6b09b7e1720061b23ac62bacaa9785a5574882
[00:00:00] warming up packs...            ████████████████████████████████████████          3/3

The Warmup request lines come from my warmup script.

Configuration file:

[repository]
repository = "rclone:rustic-cold:"
repo-hot = "rclone:rustic-hot:"
warm-up-command = "/etc/rustic/warmup.sh %id"
warm-up-wait = "48h"

[forget]
keep-within = "30d"
keep-daily = 180
keep-monthly = 18

[backup]
exclude-if-present = [".nobackup", "CACHEDIR.TAG"]
group-by = "host,label"
one-file-system = true
parent = "latest"
@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Mar 9, 2025
@Anthchirp
Copy link
Author

To make matters worse:

  • --repack-cacheable-only wasn't specified, so should have been true
  • the warmup requests are for treepacks, so could have been read from hot storage:
$ rustic list indexpacks | grep Tree | sort
[INFO] using config /etc/rustic/rustic.toml
[INFO] using warm-up command /etc/rustic/warmup.sh '%id'
[INFO] repository rclone:rustic-cold:#rclone:rustic-hot:: password is correct.
[INFO] using cache at /root/.cache/rustic/63f34d4a000baa0a279bf2e06728c44ff8a852e184ef0e04d992067bf1f30fd5
Tree PackId(3c84f56aa7aee92f2791afe8dc6b09b7e1720061b23ac62bacaa9785a5574882) 2038713 2025-03-08 23:34:05
Tree PackId(652c560bc2c1a342e46215f6526cb10197849b6dde7e35b413363325be6740b3) 3617320 2025-03-09 10:53:55
Tree PackId(b5cd225a31dfa9d741ffc8aae2bde6eb2d740eb972ee8dbd8c3634e0cd293573) 2186759 2025-03-09 10:44:25
Tree PackId(d681b22b3908fb7f17357006801dc6be78a3215f42ad94c8e9b0a8e2a9469f7f) 1649892 2025-03-09 10:39:17
Tree PackId(e139768de46015154fe83af4ce4f3c7e562588192b7983c88e3cca37c596f79d) 105165 2025-03-09 12:01:56
Tree PackId(e9bb67516ccd2231ef81a24f8a143b82424563f22d311e8819c3a04942b10fd1) 2954960 2025-03-09 10:49:21
Tree PackId(f5f17aee0cf85d8c3833257fcdc42c3d5f894c6c2b4a213cbe7ac30b741078c0) 91258 2025-03-09 12:32:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR
Projects
None yet
Development

No branches or pull requests

1 participant