cPanel Cron Job || How to use cron job in Cpanel




For Taking Backup of MySQL  mysqldump --opt -Q -u yoursitesqlusername -p'yoursitesqlpassword' yoursitesqldatabasename > /home/aaromis/backups/databasebackupname_`date +%Y_%m_%d`.sql

For Taking Backup of FILES  #!/bin/bash
tar czf ~/backups/backup_`date +%Y_%m_%d`.tgz ~/public_html

In Cron Job Page Set Email,Unix Command Script File Path,Time

~/backups/backup.sh  

Where backups is foldername and backup.sh is Unix Command Script File name

Popular posts from this blog

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

SEO Custom URL in Opencart