Import old repositories

Today there is no functionality dedicated to importing old BorgBackup repositories into BorgWarehouse.

This is not a priority feature because backups are variable data that evolve. So you can leave your old backups in place and start over in BorgWarehouse and then delete your old repositories once the retention time seems appropriate.

However, there are also archives (as cold storage) that you might want to move into BorgWarehouse. Although there is no dedicated import functionality it is possible to do this manually. Here are the steps for importing a BorgBackup repo into BorgWarehouse.

1 - Create your repository on BorgWarehouse

Create a repository…

2 - Get the user and the repo

The easy way to get this two informations is two check this :

get user and repo

3 - Transfer your data

You are free to use the tool of your choice to transfer data from your old repository to the new one managed by BorgWarehouse.

You can for example use rsync like this :

rsync -raHv old-borg-repo user@borgwarehouse:/var/borgwarehouse/USER/repos/REPOX/

Replace USER and REPOX. In our example, USER would be 01d7fcf5 and REPOX would be repo6.


🚩 Be careful to transfer the right data to the right place. After a transfer, the data structure of your Borg repository inside /var/borgwarehouse/USER/repos/REPOX/ must be something like :

Borg data structure

4 - Set files permissions

chown -R USER:USER /var/borgwarehouse/USER/repos/REPOX/*
chown USER:borgwarehouse /var/borgwarehouse/USER/repos/REPOX

Replace USER and REPOX. In our example, USER would be 01d7fcf5 and REPOX would be repo6.

5 - Check your repo

Now, go to step 3 “Launch & Verify” in Setup Wizard and select your repository into the list.

You have several choices to check your backups, ready-made commands to copy or a link to the BorgBackup documentation to go further :

Check your borg repository