mirror of https://github.com/borgbackup/borg.git
docs: update borg init examples
This commit is contained in:
parent
298c5ee539
commit
ce247526c2
|
@ -4,16 +4,19 @@ Examples
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
::
|
::
|
||||||
|
|
||||||
# Local repository, repokey encryption, BLAKE2b (often faster, since Borg 1.1)
|
# Local repository, recommended repokey AEAD crypto modes
|
||||||
$ borg init --encryption=repokey-blake2 /path/to/repo
|
$ borg init --encryption=repokey-aes-ocb /path/to/repo
|
||||||
|
$ borg init --encryption=repokey-chacha20-poly1305 /path/to/repo
|
||||||
|
$ borg init --encryption=repokey-blake2-aes-ocb /path/to/repo
|
||||||
|
$ borg init --encryption=repokey-blake2-chacha20-poly1305 /path/to/repo
|
||||||
|
|
||||||
# Local repository (no encryption)
|
# Local repository (no encryption), not recommended
|
||||||
$ borg init --encryption=none /path/to/repo
|
$ borg init --encryption=none /path/to/repo
|
||||||
|
|
||||||
# Remote repository (accesses a remote borg via ssh)
|
# Remote repository (accesses a remote borg via ssh)
|
||||||
# repokey: stores the (encrypted) key into <REPO_DIR>/config
|
# repokey: stores the (encrypted) key into <REPO_DIR>/config
|
||||||
$ borg init --encryption=repokey-blake2 user@hostname:backup
|
$ borg init --encryption=repokey-aes-ocb user@hostname:backup
|
||||||
|
|
||||||
# Remote repository (accesses a remote borg via ssh)
|
# Remote repository (accesses a remote borg via ssh)
|
||||||
# keyfile: stores the (encrypted) key into ~/.config/borg/keys/
|
# keyfile: stores the (encrypted) key into ~/.config/borg/keys/
|
||||||
$ borg init --encryption=keyfile user@hostname:backup
|
$ borg init --encryption=keyfile-aes-ocb user@hostname:backup
|
||||||
|
|
Loading…
Reference in New Issue