Feature Request: Change the ~.borgmatic location #259

Closed
opened 2019-11-28 12:07:48 +00:00 by rabievdm · 4 comments

What I'm trying to do and why

Currently all the temporary files goes to '~/.borgmatic' which is in the users home directory and if it's for systemwide backups that would then be in /root/
As far as I can see only the borg base directory can be changed but not the borgmatic default directory thus DB dumps will always go to /root/.borgmatic.

Can we add an option to also change the .borgmatic working directory and by virtue of the fact where the DB dumps takes place.

Environment

borgmatic version: 1.4.15

borgmatic installation method: pip install

Borg version: 1.1.10

Python version: 3.6.8

Database version (if applicable): N/A

operating system and version: CentOS 7

#### What I'm trying to do and why Currently all the temporary files goes to '~/.borgmatic' which is in the users home directory and if it's for systemwide backups that would then be in /root/ As far as I can see only the borg base directory can be changed but not the borgmatic default directory thus DB dumps will always go to /root/.borgmatic. Can we add an option to also change the .borgmatic working directory and by virtue of the fact where the DB dumps takes place. #### Environment **borgmatic version:** 1.4.15 **borgmatic installation method:** pip install **Borg version:** 1.1.10 **Python version:** 3.6.8 **Database version (if applicable):** N/A **operating system and version:** CentOS 7
Owner

Makes sense to me, but can you explain why the default location doesn't work in your case? Is it because you'd like the temporary borgmatic dump files stored on a different disk/volume that has more space?

Makes sense to me, but can you explain why the default location doesn't work in your case? Is it because you'd like the temporary borgmatic dump files stored on a different disk/volume that has more space?
Author

1 Just the flexibility :)
2 Yes, I do tend to be a little pedantic about my fs layout :) so / is small with dedicated /home, /var and sometimes even /opt. Generally I would have liked to put the borgmatic somewhere in /var.
This would be especially applicable if you have a DB that's a couple of GB or a couple of 100's of GB

1 Just the flexibility :) 2 Yes, I do tend to be a little pedantic about my fs layout :) so / is small with dedicated /home, /var and sometimes even /opt. Generally I would have liked to put the borgmatic somewhere in /var. This would be especially applicable if you have a DB that's a couple of GB or a couple of 100's of GB
Owner

Got it, thanks. That helps!

Got it, thanks. That helps!
Owner

Released in borgmatic 1.4.19. There's now a new "borgmatic_source_directory" option
in the location configuration section where you can override the ~/.borgmatic path. Please give it a shot and let me know how it works out for you. Note that changing this path prevents "borgmatic restore" from finding any database dumps created before the change.

Thanks for the suggestion!

Released in borgmatic 1.4.19. There's now a new "borgmatic_source_directory" option in the location configuration section where you can override the `~/.borgmatic` path. Please give it a shot and let me know how it works out for you. Note that changing this path prevents "borgmatic restore" from finding any database dumps created before the change. Thanks for the suggestion!
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#259
No description provided.