SAVEME

Auto Backup your MySQL data base by adding a single line of code in your project :-)

Stars
6

SAVEME

Auto Backup your MySQL data base by adding a single line of code in your project :-)

How it work?

Once the configurations are done (host, database, username, password ans the frequency) the system verify each time if the frequency reach and generate itself a backup .sql file in the backup repository, with a date and hour of the day (it self).

How to use it?

1- First, configs ... :


  //All config about the database
  
  $host = "localhost";
  $database = "database";
  $user = "root";
  $password = "";

  // Now frequency
  $time_between_backups = 1; // 1 represent here a day!
    //At the head if it's possible(not absolute required)
    include('SAVEME/index.php'); // AND IT's ALL DONE ;-)

  // Some code here too

  http://yourwebapp/SAVEME?now
  #And the database backup will be automatically generate as asql file