Backups arent pruned #692

Closed
opened 2023-05-08 18:28:16 +00:00 by DevloperAmanSingh · 11 comments

hey
i am making the backup using borgbase.

so i use borg create command to create backup every 4 hour.
Backups older than 12 hours are pruned .
so when they are pruned their data should be deleted from the repo.
but the data is still thier and it is consuming the space.
i am using hetzner storage box as it support borg

below are the following evidences

image

thier is only 3 backups in the firemcbackupreo . The repo info is given below

image

But when i check the repo size then it shows 1024 gb

image

Pls help i have only 1 tb and the backups are max 60gb to 70gb pls help

this is how i prune the backups

image

hey i am making the backup using borgbase. so i use borg create command to create backup every ***4 hour.*** Backups older than ***12 hours*** are pruned . so when they are pruned their data should be deleted from the repo. but the data is still thier and it is consuming the space. i am using hetzner storage box as it support borg below are the following evidences ![image](/attachments/2f3fa37a-b452-4a0a-9948-729b99043f55) thier is only 3 backups in the ***firemcbackupreo*** . The repo info is given below ![image](/attachments/0e892f7b-a15a-4d28-b6bb-0f156c666388) But when i check the repo size then it shows 1024 gb ![image](/attachments/a5c14439-85ab-45c2-a4f1-e895c5460d4f) Pls help i have only 1 tb and the backups are max 60gb to 70gb pls help this is how i prune the backups ![image](/attachments/a367e3b7-a5a2-4e5f-a9b2-c19948e019db)
Owner

A few questions that will help me understand what's going on:

  • When you're running prune, what is the full borgmatic command you're running?
  • What is in the consistency section of your borgmatic configuration?
  • What version of borgmatic are you running? (borgmatic --version)
  • What version of Borg are you running? (borg --vesrion)
  • Are you seeing more backup archives than you expect? Or are you just seeing more space consumed by the repository than you expect?

Thanks!

A few questions that will help me understand what's going on: * When you're running `prune`, what is the full borgmatic command you're running? * What is in the `consistency` section of your borgmatic configuration? * What version of borgmatic are you running? (`borgmatic --version`) * What version of Borg are you running? (`borg --vesrion`) * Are you seeing more backup archives than you expect? Or are you just seeing more space consumed by the repository than you expect? Thanks!
witten added the
question / support
label 2023-05-08 18:50:29 +00:00
Owner

I see you added a screenshot of your prune command. Have you tried running borgmatic compact as well? Depending on your version of Borg, no space is actually freed up until you run compact.

I see you added a screenshot of your `prune` command. Have you tried running `borgmatic compact` as well? Depending on your version of Borg, no space is actually freed up until you run `compact`.
  • i am not using borgmatic because hetzner only allows borg
  • my linux server borg version is borg 1.2.0
  • my hetzner box borg version is 1.2.1
  • archives are 3 all time but the space consumed is increasing after each backup . and when backup is pruned the space doesnt get less
- i am not using borgmatic because hetzner only allows borg - my linux server borg version is borg 1.2.0 - my hetzner box borg version is 1.2.1 - archives are 3 all time but the space consumed is increasing after each backup . and when backup is pruned the space doesnt get less
Owner

Thanks for providing those details. I think the problem is almost certainly that you need to run borg compact! That's the thing that will actually free up space after a prune.

Also note that this issue tracker is for borgmatic support, not for Borg itself. For that, check out: https://github.com/borgbackup/borg/issues/

(Just FYI, borgmatic works fine using Hetzner as a Borg server. borgmatic does not need to be installed on the remote server side to work.)

Thanks for providing those details. I think the problem is almost certainly that you need to run `borg compact`! That's the thing that will actually free up space after a `prune`. Also note that this issue tracker is for borgmatic support, not for Borg itself. For that, check out: https://github.com/borgbackup/borg/issues/ (Just FYI, borgmatic works fine using Hetzner as a Borg server. borgmatic does not need to be installed on the remote server side to work.)

so i can use borgmatic in hetzner storage box right?

so i can use borgmatic in hetzner storage box right?

so i can use borgmatic in hetzner storage box right?

so i can use borgmatic in hetzner storage box right?
Owner

You can use borgmatic on a non-Hetzner server or workstation to backup to a Hetzner storage box.

You can use borgmatic on a non-Hetzner server or workstation to backup _to_ a Hetzner storage box.

will it fix the storage box increased size issue

will it fix the storage box increased size issue
Owner

The only thing that will fix the size issue is running compact, either explicitly with Borg or borgmatic or implicitly with borgmatic. (By default, when no action is specified, borgmatic runs create, prune, compact, and check.)

The only thing that will fix the size issue is running `compact`, either explicitly with Borg or borgmatic or implicitly with borgmatic. (By default, when no action is specified, borgmatic runs `create`, `prune`, `compact`, and `check`.)

so if i run borg compact the backups in borg will not suffer data loss right?

so if i run borg compact the backups in borg will not suffer data loss right?
Owner

Correct. It's only reclaiming space that was already freed up by prune. More here: https://borgbackup.readthedocs.io/en/stable/usage/compact.html

Correct. It's only reclaiming space that was already freed up by `prune`. More here: https://borgbackup.readthedocs.io/en/stable/usage/compact.html
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#692
No description provided.