daniloaz / myphp-backup

Simple and fast MySQL backups using PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't use restore database

mmansyur2000 opened this issue · comments

First.. thanks for your source. the the myphp-backup.php is great for me. but i can't use the restore php file. i don't understrand bout the defince code

define("BACKUP_FILE", 'myphp-backup-majengfam-20181022_164459.sql.gz'); //
Script will autodetect if backup file is gzipped based on .gz extension

how to change the the second parameter in define function.
thank you

What do you mean? Doesn't it works if you can change it directly from your script?

You must set BACKUP_FILE with the real filename and path where your backup file is located. Otherwise the script won't find the backup file.

backup works good but restore returns
Notice: fgets(): read of 8192 bytes failed with errno=21 Is a directory in /opt/lampp/htdocs/dashboard/classes/myphp-restore.php on line 129