Avoid database credentials in config file #974

Closed
opened 2025-01-21 11:34:26 +00:00 by powerriegel · 2 comments

What I'd like to do and why

For file backups, borgmatic allows to store passwords outside the config file. This is missing for database backups where the credentials are required to be in the borgmatic configuration file itself. I would love to store it in an environment variable or in a hidden file.

Other notes / implementation ideas

No response

### What I'd like to do and why For file backups, borgmatic allows to store passwords outside the config file. This is missing for database backups where the credentials are required to be in the borgmatic configuration file itself. I would love to store it in an environment variable or in a hidden file. ### Other notes / implementation ideas _No response_
Owner

You can actually already use environment variables to provide your database passwords with borgmatic. See the documentation here and let me know if you have any questions: https://torsion.org/borgmatic/docs/how-to/provide-your-passwords/

As for reading credentials from file, please see this ticket for some ideas and feel free to weigh in: #966

You can actually already use environment variables to provide your database passwords with borgmatic. See the documentation here and let me know if you have any questions: https://torsion.org/borgmatic/docs/how-to/provide-your-passwords/ As for reading credentials from file, please see this ticket for some ideas and feel free to weigh in: https://projects.torsion.org/borgmatic-collective/borgmatic/issues/966
Author

Thanks! I did not notice that this works for db paswords as well.

Thanks! I did not notice that this works for db paswords as well.
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#974
No description provided.