Error with database backup #633

Closed
opened 2023-01-26 15:49:49 +00:00 by nicolas · 4 comments

What I'm trying to do and why

I want backup all mysql databases in separate files

Steps to reproduce (if a bug)

config.yaml (hooks part) :

hooks:
    mysql_databases:
    - name: all
      format: sql
      hostname: localhost
      options: --single-transaction --quick
      password: <mypass>
      port: 3306
      username: root

Then, when I launch borgmatic, I get this error :

/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
At 'hooks.mysql_databases[0]': Additional properties are not allowed ('format' was unexpected)

Expected behavior (if a bug)

The doc said that is possible but something doesn't work

Environment

borgmatic version: [version here]

1.7.5

borgmatic installation method: [e.g., Debian package, Docker container, etc.]

via pip

Borg version: [version here]

1.2.3

Python version: [version here]

Python 3.8.10

Database version (if applicable): [version here]

mysql Ver 15.1 Distrib 10.3.37-MariaDB

operating system and version: [OS here]

Ubuntu 20.04 LTS

#### What I'm trying to do and why I want backup all mysql databases in separate files #### Steps to reproduce (if a bug) config.yaml (hooks part) : ``` hooks: mysql_databases: - name: all format: sql hostname: localhost options: --single-transaction --quick password: <mypass> port: 3306 username: root ``` Then, when I launch borgmatic, I get this error : ``` /etc/borgmatic/config.yaml: Error parsing configuration file An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml: At 'hooks.mysql_databases[0]': Additional properties are not allowed ('format' was unexpected) ``` #### Expected behavior (if a bug) The doc said that is possible but something doesn't work #### Environment **borgmatic version:** [version here] 1.7.5 **borgmatic installation method:** [e.g., Debian package, Docker container, etc.] via pip **Borg version:** [version here] 1.2.3 **Python version:** [version here] Python 3.8.10 **Database version (if applicable):** [version here] mysql Ver 15.1 Distrib 10.3.37-MariaDB **operating system and version:** [OS here] Ubuntu 20.04 LTS
Owner

Thanks for filing this. The feature you're trying to use is only present in borgmatic 1.7.6+ ... which isn't released yet! It is implemented in the unreleased development version of borgmatic, which will hopefully be released very soon.

Thanks for filing this. The feature you're trying to use is only present in borgmatic 1.7.6+ ... which isn't released yet! It is implemented in the unreleased development version of borgmatic, which will hopefully be released very soon.
witten added the
question / support
label 2023-01-26 17:05:31 +00:00
Owner

Related: #438, #560.

Related: #438, #560.
Owner

This has been released now (borgmatic 1.7.6). Please try again and let me know how it goes!

This has been released now (borgmatic 1.7.6). Please try again and let me know how it goes!
Author

Thanks A LOT !
The test is in progress but I no longer have the error.

Thanks A LOT ! The test is in progress but I no longer have the error.
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#633
No description provided.