Simple, configuration-driven backup software for servers and workstations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

title eleventyNavigation
How to make backups redundant [{key Make backups redundant} {parent How-to guides} {order 2}]

Multiple repositories

If you really care about your data, you probably want more than one backup of it. borgmatic supports this in its configuration by specifying multiple backup repositories. Here's an example:

    # List of source directories to backup.
        - /home
        - /etc

    # Paths of local or remote repositories to backup to.
        - /var/lib/backups/local.borg

When you run borgmatic with this configuration, it invokes Borg once for each configured repository in sequence. (So, not in parallel.) That means—in each repository—borgmatic creates a single new backup archive containing all of your source directories.

Here's a way of visualizing what borgmatic does with the above configuration:

  1. Backup /home and /etc to
  2. Backup /home and /etc to
  3. Backup /home and /etc to
  4. Backup /home and /etc to /var/lib/backups/local.borg

This gives you redundancy of your data across repositories and even potentially across providers.

See Borg repository URLs documentation for more information on how to specify local and remote repository paths.