This is a simple shell to backup your dir with tar command for crontab(once a day). It also backup your database each monday(You can change it in shell script). It would also remove expired backup files(default 60 days) You will need to do the first 2 things below before use it 1: create backup dir /data/web_backups(or change to your dir and modify it in script) 2: modify mysql user,password and database name
ckwillling/backup_web_database_shell
simple shell for backup web dir and database(database just backup each moday)
Shell