mysql database backup using php and cron jobs
If your site is live and using Database then it is very important to take a Multi backup of your Database at a regular time interval.
But it is not possible to take the backup manually every time. So let's create a simple PHP function to do this job for us and we can call that function using Cron Job in regular time intervals.
Click here to know how to import the MySQL database.
Go to Cpanel and Create a folder like backup
Then upload PHP code in Public public_html file
Change DB User name, Db user password, Database name,
Hope You complete the process Now You can run this file Manually lke your domain.com/dbbackup.php
Also, you can run in cron job. go to Cpanel and search cron job
Thanks For Visit website If want code Visit our website https://blog.gowebs.in/auto-backup-mysql-database-using-php-script
or call our team - 858581444 further help or develop your website
Our official website https://www.gowebs.in