Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Wheres my backup gzip option gone?


3 replies to this topic

#1 darro

  • Community Member
  • 15 posts
  • Real Name:Darro Roberts

Posted 14 March 2004, 20:57

Noticed that the option to GZIP compress the backups in the Database Backup Manager has gone. It was there a few weeks ago! All it shows now is No Compression selected (and it cant be unclicked).

I have been adding mods but I am sure that I would have no reason to alter the backup.php file so I have no idea why its not offering the option.

Any ideas?


Cheers

Darro

#2 darro

  • Community Member
  • 15 posts
  • Real Name:Darro Roberts

Posted 19 March 2004, 22:42

Anyone?
It would be appreciated.

Cheers

Darro

#3 cleopas

  • Community Member
  • 23 posts
  • Real Name:Mark Smith
  • Location:Tucson, AZ

Posted 05 June 2004, 08:28

I really don't know WHY this happens. Maybe it's a read issue <_< . The script is not able to determine that the gzip and zip files are available and therefore removes the compression options. A work around is to remove the question (as long as you are certain that the files actually exists at the locations defined in admin/includes/application_top.php. The workaround is as follows from lines 425 in admin/backup.php:

     // if (file_exists(LOCAL_EXE_GZIP))  $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP); 
   $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP);
    //  if (file_exists(LOCAL_EXE_ZIP))  $contents[] = array('text' => tep_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP); 
   $contents[] = array('text' => tep_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP);

All that I have done is remove the questions... if (file_exists(LOCAL_EXE_GZIP)) and if (file_exists(LOCAL_EXE_ZIP)) from the code.

If anyone else has any insightful commentary I would appreciate it. Thanks.
A brick wall is the only thing standing between me and my sanity!

#4 TB

  • Community Member
  • 624 posts
  • Real Name:Tony Hodges
  • Location:Victoria, Australia

Posted 10 July 2004, 23:28

Mark,
Thanks for your quick fix... I haven't been bothered to look for it so have just been doing the backup, then logigng in via telnet and running gzip from there... I'm not sure why it doesn't work anymore. Works fine on my local server... though not on my remote.

I've checked that the files do exist... and your work-around works fine... so not sure what the issue is... Weird... ????
"The price of success is perseverance. The price of failure comes much cheaper."