---
name: "borg2-key-change-location"
section: "1"
platform: "linux"
package: "borgbackup2"
version: "2.0.0b19-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/borg2-key-change-location"
---

# borg2-key-change-location(1)

Change repository key location

## NAME

borg-key-change-location - Change repository key location

## SYNOPSIS

borg \[common options\] key change-location \[options\] KEY\_LOCATION

## DESCRIPTION

Change the location of a borg key. The key can be stored at different locations:

- •

  keyfile: locally, usually in the home directory

- •

  repokey: inside the repo (in the repo config)

Please note:

This command does NOT change the crypto algorithms, just the key location, thus you must ONLY give the key location (keyfile or repokey).

## OPTIONS

See *[borg-common(1)](/borg-common/1.md)* for common options of Borg commands.

### arguments

- **KEY\_LOCATION**

  select key location

### options

- **--keep**

  keep the key also at the current location (default: remove it)

## SEE ALSO

*[borg-common(1)](/borg-common/1.md)*

## AUTHOR

The Borg Collective
