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.
Import Existing Repository
Section titled “Import Existing Repository”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:
sftp xxxxxxx@xxxxxxx.repo.borgbase.com:repoIf 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.
Export Existing Repository
Section titled “Export Existing 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:
sftp xxxxxxx@xxxxxxx.repo.borgbase.com:repoDownload the repository folder:
sftp> get -Rp .Using Rclone
Section titled “Using Rclone”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 = sftphost = xxx999.repo.borgbase.comuser = xxx999key_file = ~/.ssh/id_ed25519shell_type = unixmd5sum_command = nonesha1sum_command = noneTo upload a repository to BorgBase:
rclone sync -v local-repo borgbase:repoTo download a repository from BorgBase:
rclone sync -v borgbase:repo local-repoMigration Service
Section titled “Migration Service”We offer free migration services for incoming transfers. Currently this is done manually. To start a transfer, follow these steps:
- Create an empty repository in your BorgBase account.
- 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.
- Contact our support at hello@borgbase.com and provide the BorgBase repository ID and the login details of the transfer source or target.