4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on August 21, 2010, 07:37:42 AM

Title: [1.7.8] Database Backup shows only *.sql files (no *.sql.gz)
Post by: V@no on August 21, 2010, 07:37:42 AM
When 4images is setup to use compression (Settings -> Use GZip compression), the database backup compresses backup files into .gz files and thes files not being showed in backup list.

The fix is simple:
in admin/backup.php find:
    if (is_file(ROOT_PATH.DATABASE_DIR."/".$file) && $file != "." && $file != ".." && preg_match("/\.sql$/i",$file)) {

Replace it with:
    if (is_file(ROOT_PATH.DATABASE_DIR."/".$file) && $file != "." && $file != ".." && preg_match("/\.sql/i",$file)) {
Title: Re: [1.7.8] Database Backup shows only *.sql files (no *.sql.gz)
Post by: x23piracy on October 13, 2010, 10:18:23 PM
Hi,

thx Vano :thumbup:
Is the restore also working after that change or is it only
to show, download and delete them?

I don't want to test it out for nothing ;)


Greetz X23
Title: Re: [1.7.8] Database Backup shows only *.sql files (no *.sql.gz)
Post by: V@no on October 14, 2010, 12:59:32 AM
nothing else has been changed, so it should work as before.
Title: Re: [1.7.8] Database Backup shows only *.sql files (no *.sql.gz)
Post by: x23piracy on October 14, 2010, 01:42:41 AM
nothing else has been changed, so it should work as before.

Hi,

never used it... so i only wanted to get sure ;) thx


Greetz X23