You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
click "download lwt backup", file is created and downloaded (eg lwt-backup-exp_version-2022-11-02-19-28-54.sql.gz)
on same page, "restore" section, choose that file, and click "restore from lwt backup"
*** Error: Invalid Database Restore file (possibly not created by LWT backup) ***
If I try to gunzip the file, I get an error:
MacBook-Air-2:Downloads jeff$ gunzip lwt-backup-exp_version-2022-11-02-19-28-54.sql.gz
gunzip: lwt-backup-exp_version-2022-11-02-19-28-54.sql.gz: not in gzip format
setup:
Mac, MAMP
Web Server localhost:8888
Server Software Apache/2.4.46
PHP Version 7.4.21
MySQL Version 5.7.34
This is LWT Version 2.5.2-fork (September 27 2022)
I tested and reproduced your issue. There is something wrong with the generated gzip file, but I think the issue is quite small. I should be able to fix it tomorrow.
I managed to find the issue, I think I got a good a specimen from the pandemonium of bugs. It was basically the following:
backup_restore.php include inc/database_connect.php.
inc/database_connect.php starts with \n<?php.
PHP interprets it a valid HTML texts node, and starts to echo output \n in plain text.
When the code starts outputting the downloadable database backup, it adds this plain text \n to the gzip-encoded content.
→ File is corrupted.
It took me three hours to remove a "\n", but now there are now longer pesky data when loading pages. I also updated the headers, that can be a potential cause for download failure.
So now you should be able to break and restore you database without much risk. Enjoy! 😆
To Reproduce
lwt-backup-exp_version-2022-11-02-19-28-54.sql.gz
)*** Error: Invalid Database Restore file (possibly not created by LWT backup) ***
If I try to gunzip the file, I get an error:
setup:
Mac, MAMP
Tested on master branch:
The text was updated successfully, but these errors were encountered: