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 append-only repo if client has pruned the repo already #5950
Comments
If you want to compact the repo (== really remove deleted data) from the admin machine, you must not have "append-only" in the authorized_keys entry for the key used by the admin. And as the docs tell, before compacting, you should make sure the repo is in the desired state (no malicious or accidental bad operations have been run). borg 1.1: If you run prune from the admin machine, you would not also run prune on the append-only clients. |
yes that is clear, maybe lets explain it a different way:
|
Run prune only from admin machine. Way easier to manage. |
okay, that is good to know. That indeed answers my question. |
Have you checked borgbackup docs, FAQ, and open Github issues?
yes
Is this a BUG / ISSUE report or a QUESTION?
QUESTION
System information. For client/server mode post info for both machines.
Your borg version (borg -V).
borg 1.1.9
Operating system (distribution) and version.
Debian Buster
Hardware / network configuration, and filesystems used.
How much data is handled by borg?
Full borg commandline that lead to the problem (leave away excludes and passwords)
Server in append-only mode, configured via .ssh/authorized_keys: https://borgbackup.readthedocs.io/en/stable/usage/notes.html#append-only-mode
Client:
Admin Machine tries the same prune command later.
Describe the problem you're observing.
The documentation for the append-mode says under "Drawbacks":
See https://borgbackup.readthedocs.io/en/stable/usage/notes.html#drawbacks
However, I found that running
borg prune
on the repository from the admin machine does not work if the client (who can only append) runs prune on its own and thus the admin would not prune any archives.The documentation suggest to me, that it should be possible for the client to tag the data as removed and the admin eventually removes it completely. But, in that case the admin has to find a time when the client has not yet pruned the repo and would have tagged any new archives.
Maybe I do not understand the documentation here correctly but it sounds like that running prune on the admin machine should remove all tagged archives, but it seems like it does this only if there are any archives to prune on the admin machine as well. Or does "as soon as you write" means that the pruning is only triggered if and only if something else is actually pruned, thus running
borg prune
without any archive pruned is only reading?Furthermore, is there a way to remove only the tagged archives as the admin, even if no other archives would be pruned?
Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.
yes
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: