Skip to content

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

@Anthchirp

Description

@Anthchirp

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions