How to set up a daily backup?
Now that everything is prepared, you should set up a daily backup for your server.
- Run over CLI:
sudo bash /var/scripts/not-supported.sh
- Choose
Daily Backup Wizard
- Confirm that you want to create a daily backup script
- Confirm that you will leave the backup drive connected
- Select your external data SSD/HDD to be included in backups
- Choose that you want to backup the whole external data SSD/HDD
- Select the daily backup drive as backup target
- Choose to use the recommended backup directory
- Enter a difficult encryption key for your backup and store it at a safe place
(Difficult encryption key means at least 20 characters long, containing small and tall letters, digits and special characters) - Choose to run the backup at the recommended time at
4.00 am
- Now everything will get set up
- You should now receive the daily backup config file via mail. Please save/archive it
- Finally, you will see the message that the backup script was successfully created
note
It is located here: /var/scripts/daily-borg-backup.sh
and will get executed at your chosen backup time, most likely 4.00 am
. You will get notified by mail if something fails and also if the backup was successful. The script which will create the daily backup is based on a program called borgbackup
which is used to make daily incremental, compressed and deduplicated backup archives from your root partition and external data SSD/HDD.