Skip to content

Multiple borg repos on the same server #21

@noplanman

Description

@noplanman

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions