init.rst 867 B

12345678910111213141516171819202122
  1. .. include:: init.rst.inc
  2. Examples
  3. ~~~~~~~~
  4. ::
  5. # Local repository, recommended repokey AEAD crypto modes
  6. $ borg init --encryption=repokey-aes-ocb /path/to/repo
  7. $ borg init --encryption=repokey-chacha20-poly1305 /path/to/repo
  8. $ borg init --encryption=repokey-blake2-aes-ocb /path/to/repo
  9. $ borg init --encryption=repokey-blake2-chacha20-poly1305 /path/to/repo
  10. # Local repository (no encryption), not recommended
  11. $ borg init --encryption=none /path/to/repo
  12. # Remote repository (accesses a remote borg via ssh)
  13. # repokey: stores the (encrypted) key into <REPO_DIR>/config
  14. $ borg init --encryption=repokey-aes-ocb user@hostname:backup
  15. # Remote repository (accesses a remote borg via ssh)
  16. # keyfile: stores the (encrypted) key into ~/.config/borg/keys/
  17. $ borg init --encryption=keyfile-aes-ocb user@hostname:backup