7. Scheduled backups - MikaelAndriIngason/KEST3LN05EU-Lokaverkefni GitHub Wiki

Schedule configuration

$ crontab -e

Runs the script at 00:00 on every Friday

crontabconfig


Backup script

Script is stored at scripts/backuphome.sh

The script loops through every user, creates a backup directory if it does not exist, and then compresses the users data into a tar file and places it into the directory.

backupscript


Backup proof

Backups are stored in every user's backup directory which the script created

backupproof