How to do append only? #462
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#462
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Use append only backups without prune.
Steps to reproduce (if a bug)
I use the following base configuration as a base:
The configuration is considered valid:
Actual behavior (if a bug)
When I trigger the backup with
borgmatic --verbosity 2it kills withWith the detail on
At least one of the "keep-within", "keep-last", "keep-secondly", "keep-minutely", "keep-hourly", "keep-daily", "keep-weekly", "keep-monthly" or "keep-yearly" settings must be specified..Looking through the docs leaves me none the wiser:
I did not specify any, I did not specify "prune". I do not even know how to not-specify prune. The program fails because I did not specify at least one
keep-*parameter. As soon as I specify one,prunegets executed.Last try was to just to uncomment the retention key, but that fails as well:
Expected behavior (if a bug)
Skip prune.
Other notes / implementation ideas
None.
Environment
borgmatic version: 1.5.20
borgmatic installation method:
pip3 on debian
Borg version: borg 1.1.17
Python version: Python 3.8.10
Database version (if applicable): n/a
operating system and version: Debian 8
Thanks for filing this! The way to skip prune is to run the specific borgmatic actions you want, e.g.
createandcheckon the command-line, omittingprune. Example:See the documentation for more information.
It sounds like though there may be a documentation gap if this isn't clear, and perhaps this ticket could be used for fixing that.
It also sounds like perhaps you don't want to have specify a
keep-*option, given that you'll never be pruning from this machine? One change I could envision is to change the configuration validation to accept a configuration even if zerokeep-*options are specified. And then just blow up if the user ever tries toprunein that case.Ah, thats how it works. Did not check the command reference on what
borgmaticwithout any parameters actually means, so I assumed it is just a "work with everything configured in the configuration file", not an alias for create, check and prune. I just worked through the setup chapter and did not see any example on a different use case exceptinit. Now the actual error message makes more sense, even though the comment in the yaml itself seems a bit misleading. Also that you should configure prune anyway, even if you intend to never use it.A hard exit if prune is unconfigured would be the more implicit handling I think, because it comes preconfigured and my first intention was to disable it, so I uncommented everythign related to it.
That makes sense. I'll treat this as a documentation issue and potentially adjust the handling when prune is unconfigured. Thanks!
There's now a new
skip_actionsconfiguration option that allows you to disable an action (likepruneorcompact) completely. See #701 or the documentation for more information.