This repository contains two scripts for the Backup System homework assignment:
createbackup.sh
: A backup script for backing up specified files to a specified destination directory and calculating the MD5 checksum of the archive file.disk-space-alert.sh
: A script for monitoring disk space usage and sending email alerts if disk space usage exceeds a specified threshold.
- Bash shell (version 4 or later)
df
andawk
commands fordisk-space-alert.sh
- Configuration file
/config/createbackup.conf
forcreatebackup.sh
- Copy
createbackup.sh
and/config/createbackup.conf
files to the same directory. - Edit the configuration file
/config/createbackup.conf
to specify the files to be backed up and the destination directory. - Run the script with the command
./createbackup.sh
.
- Copy
disk-space-alert.sh
to the desired directory. - Make the script executable with the command
chmod +x disk-space-alert.sh
. - Run the script with the command
./disk-space-alert.sh
.
- [Eyup Fidan]
This project is licensed under the MIT License.