Bash Script to backup your website files and databases
##INSTALL:
- put the backup file into your scripts folder
- set the options: your database user, database password, folders to backup, databases to backup
- save your changes
- create a cronjob (crontab -e) and add something like one (or more) of the following:
#check on services
@hourly ~/.scripts/backups hourly
@monthly ~/.scripts/backup monthly
@yearly ~/.scripts/backup yearly
The script will get the frequency from the cronjob, and make a folder in your ~/.backups directory named after the frequency (daily, monthly, yearly)