Sample bash backup script
I made a backup script using bash, this script will backup html directory and skip some folder that do not need to be included. The backup process will be written in the log file, so that we know whether backup running successfully or not. Variable that needed to be changed: LOG: the log file. TEMPDIR: temporary directory BKPDIR: directory to save the back up files WWWDIR: parent directory that needed to be backed up BKP: list of directory that will be backed up NOTBKP: list directory that will not be backed up