borg2-key-import(1)

borg2-key-import1

Import the repository key from backup

Usage

borg [common options] key import [options] [PATH]

Overview

This command restores a key previously backed up with the export command.

If the --paper option is given, the import will be an interactive process in which each line is checked for plausibility before proceeding to the next line. For this format PATH must not be given.

For repositories using keyfile encryption, the key file which borg key import writes to depends on several factors. If the BORG_KEY_FILE environment variable is set and non-empty, borg key import creates or overwrites that file named by $BORG_KEY_FILE. Otherwise, borg key import searches in the $BORG_KEYS_DIR directory for a key file associated with the repository. If a key file is found in $BORG_KEYS_DIR, borg key import overwrites it; otherwise, borg key import creates a new key file in $BORG_KEYS_DIR.

Options

See borg-common(1) for common options of Borg commands.

arguments

PATH

path to the backup ('-' to read from stdin)

options

--paper

interactively import from a backup done with --paper

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

The Borg Collective

From borgbackup2 2.0.0b19-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.