//Lib import React from 'react'; import classes from '../WizardStep1/WizardStep1.module.css'; import { IconTool, IconAlertCircle } from '@tabler/icons-react'; import CopyButton from '../../UI/CopyButton/CopyButton'; import lanCommandOption from '../../../helpers/functions/lanCommandOption'; function WizardStep2(props) { ////Vars const wizardEnv = props.wizardEnv; const UNIX_USER = wizardEnv.UNIX_USER; //Needed to generate command for borg over LAN instead of WAN if env vars are set and option enabled. const { FQDN, SSH_SERVER_PORT } = lanCommandOption( wizardEnv, props.selectedOption.lanCommand ); return (

Initialize a repository

To initialize your repository with borgbackup :
borg init -e repokey-blake2 ssh:// {UNIX_USER}@{FQDN} {SSH_SERVER_PORT}/./ {props.selectedOption.repositoryName}
The encryption mode is the one recommended by BorgBackup. For more information,{' '} click here .

Borgmatic

If you are using Borgmatic and have already edited the configuration file (find a sample on the step 4) :
borgmatic init -e repokey-blake2

Vorta

To "Initialize a new repository" or "Add existing repository", copy this into the field "Repository URL" of Vorta :
ssh:// {UNIX_USER}@{FQDN} {SSH_SERVER_PORT}/./ {props.selectedOption.repositoryName}
For more information about the Vorta graphical client, please refer to{' '} this documentation .
Check the fingerprint of server
To check that you are talking to the right server, please make sure to validate one of the following key's fingerprint when you first connect :
  • ECDSA : {wizardEnv.SSH_SERVER_FINGERPRINT_ECDSA}
  • ED25519 : {wizardEnv.SSH_SERVER_FINGERPRINT_ED25519}
  • RSA : {wizardEnv.SSH_SERVER_FINGERPRINT_RSA}
  • Save your passphrase
    Once again, the server cannot access your encrypted backup data or the encryption passphrase. Remember to put your passphrase in your password manager when you initialise your repository.
    ); } export default WizardStep2;