-
Notifications
You must be signed in to change notification settings - Fork 19
Description
As it is now, I don't think it's possible to have multiple backup repositories for the same client.
My use case is the following:
I use borg to back up files and database exports. Since the DB dumps are really big, I do those backups via stdin directly into a borg repo, as opposed to writing to a file and then backing up the file.
I've added those export commands as borgbackup_post_commands, changing the name of the backup for each one (i.e. $REPOSITORY::${date}-mariadb and $REPOSITORY::${date}-postgres).
This works well, but the problem is the pruning, as it only keeps the last one executed, not all of the individual ones. Which makes sense, as they all belong to the same repo, so to speak.
What I'd need though, is to have multiple repos on the backup server for each backup.
Any ideas on how to get this done?
The only thing I could think of so far, is to modify the role to set backups in an array, instead of top-level variables, but that would need quite a bit of rewriting...