//Lib import React from 'react'; import classes from '../WizardStep1/WizardStep1.module.css'; import { IconWand } from '@tabler/icons-react'; import CopyButton from '../../UI/CopyButton/CopyButton'; import lanCommandOption from '../../../helpers/functions/lanCommandOption'; function WizardStep4(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 { HOSTNAME, SSH_SERVER_PORT } = lanCommandOption( wizardEnv, props.selectedOption.lanCommand ); const configBorgmatic = `location: # List of source directories to backup. source_directories: - /your-repo-to-backup - /another/repo-to-backup repositories: # Paths of local or remote repositories to backup to. - ssh://${UNIX_USER}@${HOSTNAME}:${SSH_SERVER_PORT}/./${props.selectedOption.repositoryName} storage: archive_name_format: '{HOSTNAME}-documents-{now}' encryption_passphrase: "YOUR PASSPHRASE" retention: # Retention policy for how many backups to keep. keep_daily: 7 keep_weekly: 4 keep_monthly: 6 consistency: # List of checks to run to validate your backups. checks: - name: repository - name: archives frequency: 2 weeks #hooks: # Custom preparation scripts to run. #before_backup: # - prepare-for-backup.sh # Databases to dump and include in backups. #postgresql_databases: # - name: users # Third-party services to notify you if backups aren't happening. #healthchecks: https://hc-ping.com/be067061-cf96-4412-8eae-62b0c50d6a8c`; return (

Automate your backup

The official borgbackup project provides a script in its documentation  right here .

Vorta

If you are using the Vorta graphical client, please refer to  this documentation .

Borgmatic

If you are using Borgmatic, you can check  this documentation  and adapt and use the following script :
{configBorgmatic}
); } export default WizardStep4;