2017-06-06 22:06:36 +00:00
|
|
|
.. include:: init.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
2022-03-22 00:55:49 +00:00
|
|
|
# Local repository, recommended repokey AEAD crypto modes
|
|
|
|
$ 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
|
2017-06-06 22:06:36 +00:00
|
|
|
|
2022-03-22 00:55:49 +00:00
|
|
|
# Local repository (no encryption), not recommended
|
2017-06-06 22:06:36 +00:00
|
|
|
$ borg init --encryption=none /path/to/repo
|
|
|
|
|
|
|
|
# Remote repository (accesses a remote borg via ssh)
|
2020-04-16 19:35:33 +00:00
|
|
|
# repokey: stores the (encrypted) key into <REPO_DIR>/config
|
2022-05-15 19:55:19 +00:00
|
|
|
$ borg init --encryption=repokey-aes-ocb ssh://user@hostname/./backup
|
2017-06-06 22:06:36 +00:00
|
|
|
|
2020-04-16 19:35:33 +00:00
|
|
|
# Remote repository (accesses a remote borg via ssh)
|
|
|
|
# keyfile: stores the (encrypted) key into ~/.config/borg/keys/
|
2022-05-15 19:55:19 +00:00
|
|
|
$ borg init --encryption=keyfile-aes-ocb ssh://user@hostname/./backup
|