borg-key-change-passphrase(1) borg backup tool borg-key-change-passphrase(1) (NAME) borg-key-change-passphrase - Borg (SYNOPSIS) borg [common options] key change-passphrase [options] [REPOSITORY] (DESCRIPTION) . . ( /MAC [chunker seed]). Borg ( ) . (OPTIONS) Borg borg-common(1) . (arguments) REPOSITORY (EXAMPLES) # $ borg init --encryption=keyfile -v /path/to/repo Initializing repository at "/path/to/repo" Enter new passphrase: Enter same passphrase again: Remember your passphrase. Your data will be inaccessible without it. Key in "/root/.config/borg/keys/mnt_backup" created. Keep this key safe. Your data will be inaccessible without it. Synchronizing chunks cache... Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0. Done. # $ borg key change-passphrase -v /path/to/repo Enter passphrase for key /root/.config/borg/keys/mnt_backup: Enter new passphrase: Enter same passphrase again: Remember your passphrase. Your data will be inaccessible without it. Key updated # # ( ) # ( keyfile) $ BORG_KEY_FILE=/path/to/output-key borg key import /path/to/repo /path/to/exported : $ BORG_NEW_PASSPHRASE=old borg init -e=repokey repo # "old" . $ BORG_PASSPHRASE=old BORG_NEW_PASSPHRASE=new borg key change-passphrase repo # "new" . (SEE ALSO) borg-common(1) (AUTHORS) The Borg Collective 2026-07-18 borg-key-change-passphrase(1)