Let generate-borgmatic-config override existing files.
#539
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
I maintain all my YAML configs using SVN and after upgrading BorgMatic to 1.6.1, tried the process of
generate-borgmatic-configfor the first time. The important thign to note is that I really checkout those configs at the server backing things up as well. So for my workflow there's not really the need to force users to upgrade the configs into an additional file, but instead make things more difficult:If overwriting the source file would be possible, I could use
svn diffeither on the server or simply after downloading the whole file tree e.g. usingpscpto my client with support for GUI to modify new configs according to my needs. With additional files in place, I need to rename or delete or copy more than necessary.Other notes / implementation ideas
Maybe some
--forceoption would be enough already to prevent the check for an existing file. Or maybe optionally output destination contents to STDOUT, so one can redirect using the shell into the source file.Thanks!
Environment
borgmatic version: 1.5.24
borgmatic installation method: PIP, system wide
Borg version: 1.1.16
Python version: 3.8.10
operating system and version: Ubuntu 20.04
I've implemented this in master with a new "--overwrite" flag. It'll be part of the next release. Thanks for the suggestion!
This has been released in borgmatic 1.6.2!