Here’s My Code to create backup of a table
<?php
include 'connection.php';
$table_name = "brand";
$backup_file = "D:/wamp64/www/ShoppingTemplate/backup/employee15.sql";
echo $sql = "SELECT * INTO OUTFILE '$backup_file' FROM $table_name";
mysqli_query($con,$sql);
if(! $sql ) {
die('Could not load data : '.mysqli_error($con));
}
echo "Loaded data successfully\n";
?>
This create a new backup copy of table.But after updating a table and again taking the backup, The same backup file is not updating at all.
Do I need to create new file whenever the backup is taken?