Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 449 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 449 Bytes

auto-site-backup-script

Shell script to take automatic backups of code and database on same server and remote server

Just set your values in the variables at top,

and set up the cron job to run the shell script at desired intervals,

like: 30 23 * * * /path/to/backup.sh

to take automatic backups of code and db everyday at 11:30 PM.

NOTE : DO NOT FORGET to chmod 0777 backup.sh or you might see error ./copyfiles.sh: command not found.