//Lib import React from 'react'; import classes from '../WizardStep1/WizardStep1.module.css'; import { IconWand } from '@tabler/icons'; import CopyButton from '../../UI/CopyButton/CopyButton'; function WizardStep4(props) { 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://${props.selectedOption.unixUser}@${process.env.NEXT_PUBLIC_HOSTNAME}:${process.env.NEXT_PUBLIC_SSH_SERVER_PORT}/./${props.selectedOption.repository} storage: archive_name_format: '{NEXT_PUBLIC_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;