Question: consistency.prefix #91

Closed
opened 2018-08-27 06:07:30 +00:00 by borgos · 3 comments

I see this message with journalctl:

borgmatic[3164]: Since version 1.1.16, if you provide archive_name_format, you should also specify consistency.prefix.

What does this mean? What is consistency.prefix and how do I specify it?

I see this message with journalctl: borgmatic[3164]: Since version 1.1.16, if you provide `archive_name_format`, you should also specify `consistency.prefix`. What does this mean? What is `consistency.prefix` and how do I specify it?
Owner

It means that, since you're using the archive_name_format borgmatic configuration option, you should also supply the prefix option in the consistency section of the configuration file. Here's the comment on that option:

    # When performing the "archives" check, only consider archive names starting with
    # this prefix. Borg placeholders can be used. See the output of
    # "borg help placeholders" for details. Default is "{hostname}-".
    prefix: sourcehostname

The reason for this warning is so that your consistency checks only consider archives with a prefix that matches your archive_name_format. If you didn't specify a prefix, then borgmatic would consistency check all archives, even ones that it didn't create.

Hope that helps.

It means that, since you're using the `archive_name_format` borgmatic configuration option, you should also supply the `prefix` option in the `consistency` section of the configuration file. Here's the comment on that option: ```yaml # When performing the "archives" check, only consider archive names starting with # this prefix. Borg placeholders can be used. See the output of # "borg help placeholders" for details. Default is "{hostname}-". prefix: sourcehostname ``` The reason for this warning is so that your consistency checks only consider archives with a `prefix` that matches your `archive_name_format`. If you didn't specify a `prefix`, then borgmatic would consistency check all archives, even ones that it didn't create. Hope that helps.
witten added the
question / support
label 2018-08-27 15:11:43 +00:00
Owner

By the way, the same goes for the prefix option in the retention section of borgmatic's configuration. It's even more important to specify in your case, because doing so ensures that borgmatic only prunes archives with a particular prefix (ideally matching your archive_name_format) instead of all archives.

By the way, the same goes for the `prefix` option in the `retention` section of borgmatic's configuration. It's even more important to specify in your case, because doing so ensures that borgmatic only prunes archives with a particular `prefix` (ideally matching your `archive_name_format`) instead of all archives.
Author

The option and the comment weren't in my config. I have added them now. In the retention section the prefix was already there.
Thanks!

The option and the comment weren't in my config. I have added them now. In the retention section the prefix was already there. Thanks!
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#91
No description provided.