Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gzip database backup?


booster

Recommended Posts

Posted

Hello.

 

Slightly weird situation here, I have some databases on a server where I can select an option in osc admin panel (database backup) to backup using gzip.

 

However using another server that gzip option isn't displayed as an option in osc's admin.

 

Anyone know why this should be the case?

I'd like to use gzip for the backups to save some disk space.

 

Dave.

Posted
Hello.

 

Slightly weird situation here, I have some databases on a server where I can select an option in osc admin panel (database backup) to backup using gzip.

 

However using another server that gzip option isn't displayed as an option in osc's admin.

 

Anyone know why this should be the case?

I'd like to use gzip for the backups to save some disk space.

 

Dave.

 

I traced the problem to the default directory structure in admin/includes/application_top.php.

 

//define('LOCAL_EXE_GZIP', '/usr/bin/gzip');

define('LOCAL_EXE_GZIP', '/bin/gzip');

//define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');

define('LOCAL_EXE_GUNZIP', '/bin/gunzip');

 

You can see above the changes I made to suit the layout that the "problem" server gave. Basically the usr directory wasn't in the path to gzip so I removed it.

 

Dave.

  • 1 month later...
Posted

well... For me it worked until few days ago, and I had all may backups in gzip compression. But now the gzip compression option is missing.

don't know why...

==========

  • 10 months later...
Posted
I traced the problem to the default directory structure in admin/includes/application_top.php.

 

//define('LOCAL_EXE_GZIP', '/usr/bin/gzip');

define('LOCAL_EXE_GZIP', '/bin/gzip');

//define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');

define('LOCAL_EXE_GUNZIP', '/bin/gunzip');

 

You can see above the changes I made to suit the layout that the "problem" server gave. Basically the usr directory wasn't in the path to gzip so I removed it.

 

Dave.

 

The older version (2.1) used that option but all of the 2.2MS2 that I have tried does not. I did modify a

2.1 version to work on MS2 and it did fine. I backed up and restored my db using GZIP, ZIP, and pure sql. I posted it as a contrib but it was deleted the first time. I tried again and it's there now, so I probably did something incorrectly in posting it.

www.djscollectables.com

Posted

Works fine for me with a stock 2.2MS2

 

I did have to change the directory path to remove /usr.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Archived

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

×
×
  • Create New...