2024-09-08 15:18:53 +00:00
|
|
|
.. _borg_repo_create:
|
2022-06-23 23:19:19 +00:00
|
|
|
|
2024-09-08 15:18:53 +00:00
|
|
|
.. include:: repo-create.rst.inc
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
|
|
|
# Local repository
|
|
|
|
$ export BORG_REPO=/path/to/repo
|
|
|
|
# recommended repokey AEAD crypto modes
|
2024-09-08 14:26:52 +00:00
|
|
|
$ borg repo-create --encryption=repokey-aes-ocb
|
|
|
|
$ borg repo-create --encryption=repokey-chacha20-poly1305
|
|
|
|
$ borg repo-create --encryption=repokey-blake2-aes-ocb
|
|
|
|
$ borg repo-create --encryption=repokey-blake2-chacha20-poly1305
|
2022-06-23 23:19:19 +00:00
|
|
|
# no encryption, not recommended
|
2024-09-08 14:26:52 +00:00
|
|
|
$ borg repo-create --encryption=authenticated
|
|
|
|
$ borg repo-create --encryption=authenticated-blake2
|
|
|
|
$ borg repo-create --encryption=none
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
# Remote repository (accesses a remote borg via ssh)
|
|
|
|
$ export BORG_REPO=ssh://user@hostname/~/backup
|
|
|
|
# repokey: stores the (encrypted) key into <REPO_DIR>/config
|
2024-09-08 14:26:52 +00:00
|
|
|
$ borg repo-create --encryption=repokey-aes-ocb
|
2022-06-23 23:19:19 +00:00
|
|
|
# keyfile: stores the (encrypted) key into ~/.config/borg/keys/
|
2024-09-08 14:26:52 +00:00
|
|
|
$ borg repo-create --encryption=keyfile-aes-ocb
|
2022-07-04 22:38:37 +00:00
|
|
|
|