Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wheres my backup gzip option gone?


Guest

Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

  • 1 month later...

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."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...