#120 Create borgmatic.d/ during default installation

Geschlossen
vor 10 Monaten von patrick_stronn geöffnet · 4 Kommentare
patrick_stronn hat vor 10 Monaten kommentiert

I just realized we could do this, but if it were created during installation, I’d found it long ago!

Why not creating it by default?

I just realized we could do this, but if it were created during installation, I'd found it long ago! Why not creating it by default?
witten hat vor 10 Monaten kommentiert
Besitzer

Probably no good reason.. My guess is that it’s historical.. generate-borgmatic-config was written before the borgmatic.d feature existed.

Good idea!

Probably no good reason.. My guess is that it's historical.. `generate-borgmatic-config` was written before the `borgmatic.d` feature existed. Good idea!
witten fügte das
design finalized
Label vor 8 Monaten hinzu
nicoulaj hat vor 8 Monaten kommentiert

Just my two cents, what is the purpose of having both /etc/borgmatic and /etc/borgmatic.d ? Wouldn’t it be simpler to completely remove /etc/borgmatic and just keep /etc/borgmatic.d ?

Just my two cents, what is the purpose of having both `/etc/borgmatic` and `/etc/borgmatic.d` ? Wouldn't it be simpler to completely remove `/etc/borgmatic` and just keep `/etc/borgmatic.d` ?
witten hat vor 8 Monaten kommentiert
Besitzer

While you’re entirely correct that /etc/borgmatic.d/ could handle both cases, /etc/borgmatic/ is more for the “common case” of just having a single config file. Slightly nicer user experience, I guess.

Also, the code that supports both /etc/borgmatic/ and /etc/borgmatic.d/ has to be there anyway, since the user can provide multiple custom config file paths on the command-line with the --config flag.

While you're entirely correct that `/etc/borgmatic.d/` could handle both cases, `/etc/borgmatic/` is more for the "common case" of just having a single config file. Slightly nicer user experience, I guess. Also, the code that supports both `/etc/borgmatic/` and `/etc/borgmatic.d/` has to be there anyway, since the user can provide multiple custom config file paths on the command-line with the `--config` flag.
witten hat vor 6 Monaten kommentiert
Besitzer

I decided not to do this as written, because there isn’t a clean or universal way to run arbitrary commands (like making a directory) when borgmatic gets installed by pip or the system package manager. Instead, I opted to put this how-to guide mentioning /etc/borgmatic.d/ prominently on the borgmatic home page: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/ .. I hope that works!

I decided not to do this as written, because there isn't a clean or universal way to run arbitrary commands (like making a directory) when borgmatic gets installed by pip or the system package manager. Instead, I opted to put this how-to guide mentioning `/etc/borgmatic.d/` prominently on the borgmatic home page: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/ .. I hope that works!
witten hat vor 6 Monaten geschlossen
Anmelden, um an der Diskussion teilzunehmen.
Kein Meilenstein
Niemand zuständig
3 Beteiligte
Fällig am

Kein Fälligkeitsdatum gesetzt.

Abhängigkeiten

Dieses Issue hat momentan keine Abhängigkeiten.

Laden…
Abbrechen
Speichern
Hier gibt es bis jetzt noch keinen Inhalt.