Feature Request: Change the ~.borgmatic location #259
Labels
No Label
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#259
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
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
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?
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
Got it, thanks. That helps!
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!