I had seen many DB backup scripts which work but don't meet my custom requirements. Later i will add it to cron.
The script should be totally automated in getting home folder path, no hard coded paths need's to be written.
- It will back all available database's in HOME dir inside "BACKUP FOLDER"
- I will run it in cron every day, it should delete LAST 2 old backup's
- saved DB are tar.gz compressed for best compression ratio [obviously name of backed Db file is the datetimestamp]
- should check if lock table, should mail on provided mail id the log of backup success,if error it will log send error in body of mail [no attachment]
Previously i tried to write something from scratch but ended but getting my whole "public_html" folder deleted
Please get me this cpanel G33k's
Thanks
Note: Need professional work as my database's size various in GBs 280 +
Thanks
The script should be totally automated in getting home folder path, no hard coded paths need's to be written.
- It will back all available database's in HOME dir inside "BACKUP FOLDER"
- I will run it in cron every day, it should delete LAST 2 old backup's
- saved DB are tar.gz compressed for best compression ratio [obviously name of backed Db file is the datetimestamp]
- should check if lock table, should mail on provided mail id the log of backup success,if error it will log send error in body of mail [no attachment]
Previously i tried to write something from scratch but ended but getting my whole "public_html" folder deleted
Please get me this cpanel G33k's
Thanks
Note: Need professional work as my database's size various in GBs 280 +
Thanks
Last edited by a moderator: