Skip to content

How to Import, Export or Migrate Existing Repositories

Reviewed in November 2026

If you have an existing Borg repository, you can import it into BorgBase using SFTP. Naturally, you can use the same technique to export an existing repository.

If you can’t transfer the repository yourself, we also offer a free migration service.

First, create a new, empty BorgBase repository in your account under Repositories > New Repository. Choose the name and region, and assign an SSH key for access under the Access tab. Then open the Advanced tab and toggle Enable SFTP access. Finally, click Add Repository to create the repository.

Next, click the Copy icon next to the repository name to copy the repository URL to your clipboard.

Then on your local system, navigate into the existing repository to be uploaded. The folder should contain files called config and data. After ensuring you are in the correct folder, connect to your new BorgBase repository with sftp:

Terminal window
sftp xxxxxxx@xxxxxxx.repo.borgbase.com:repo

If the connection succeeds, you will see a new prompt starting with sftp>. Now you can upload all existing data with put -Rp .:

sftp> put -Rp .

After the copy operation is finished, edit the repository, disable Enable SFTP access under the Advanced tab, click Apply Changes, and use borg info to verify the new repository.

Exporting works similarly to importing, but assumes that you already have the repository set up in BorgBase. To export it, open the Repositories page in the BorgBase control panel and click the Edit repository icon in the right column.

Open the Advanced tab and toggle Enable SFTP access. When done, click Apply Changes and copy the repository URL to the clipboard using the copy icon next to the repository name.

Next, connect to your existing repository using sftp:

Terminal window
sftp xxxxxxx@xxxxxxx.repo.borgbase.com:repo

Download the repository folder:

sftp> get -Rp .

rclone is a bit more complex but offers good sync features, making it better suited for larger repositories. Example configuration (find the config path via rclone config file):

[borgbase]
type = sftp
host = xxx999.repo.borgbase.com
user = xxx999
key_file = ~/.ssh/id_ed25519
shell_type = unix
md5sum_command = none
sha1sum_command = none

To upload a repository to BorgBase:

Terminal window
rclone sync -v local-repo borgbase:repo

To download a repository from BorgBase:

Terminal window
rclone sync -v borgbase:repo local-repo

We offer free migration services for incoming transfers. Currently this is done manually. To start a transfer, follow these steps:

  1. Create an empty repository in your BorgBase account.
  2. Make sure your old repository data is accessible from the internet, e.g. via SSH, FTP, or HTTP. For SSH we will provide you with a one-time public key to use.
  3. Contact our support at hello@borgbase.com and provide the BorgBase repository ID and the login details of the transfer source or target.