2017-06-06 22:06:36 +00:00
|
|
|
.. include:: init.rst.inc
|
|
|
|
|
|
|
|
Examples
|
|
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
|
|
|
|
# Local repository, repokey encryption, BLAKE2b (often faster, since Borg 1.1)
|
|
|
|
$ borg init --encryption=repokey-blake2 /path/to/repo
|
|
|
|
|
|
|
|
# Local repository (no encryption)
|
|
|
|
$ 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
|
2017-06-06 22:06:36 +00:00
|
|
|
$ borg init --encryption=repokey-blake2 user@hostname:backup
|
|
|
|
|
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/
|
2017-06-07 14:29:37 +00:00
|
|
|
$ borg init --encryption=keyfile user@hostname:backup
|