borg init --encryption=repokey-blake2 /backup/repo
Initialize an encrypted borg repository
Creates a new repository (encrypted backup storage) at /backup/repo. repokey-blake2 stores the encryption key inside the repository and uses the fast blake2 hash; keyfile would store the key on your machine instead. You set the passphrase here, and every later command needs it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.