Skip to content

efficiently transfer an archive from one repository to another #3867

@quickslyver

Description

@quickslyver
  • I have checked borgbackup docs, FAQ, and open Github issues
  • It is a QUESTION

Use case (context)

  1. I have a local backup repository where there are multiple archives (dailies, weeklies and monthlies archives).
  2. I would like to have a much smaller offsite backup repository where only the most recent daily archive is copied

Problem

Currently it seems there is no command available in borg to copy archives between repository. (true ?)

Workaround

I've found the following workarounds that all have drawbacks:

  1. mount the archive i want to copy on the local backup repository (fuse module) and run a borg create on the offsite backup repository. But the fuse module seems not to be designed for that kind of "heavy duty access" (slow)
  2. "borg extract" the archive on the local backup server filesystem , "borg create" the archive on the offsite server. But it wastes a lot of storage on the local backup server.
  3. backup directly from the source servers (the backed-up servers) to the offsite server: then the backed-up need to have access directly to the offsite server and they need to be backed-up twice (for the local and the offsite server)

The perfect solution would be a direct copy of the archive from one repository to another using a borg backup command

Questions

Two questions:

  1. Is there a better workaround for my use case ?
  2. Is adding a command to copy an archive between two different borg repository feasible ? (I can help)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions