Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

backing up database in oscommerce


haroldh7

Recommended Posts

If I was to backup the database in os commerce, will that save all my product listing and images and all my work I put into os commerce.

 

I figure if it does, then I could uninstall my oscommerce and move my oscommerce elsewhere and then use the backup to fix my oscommerce to look as I had it before I backed it up.

 

Harold

Link to comment
Share on other sites

A DB backup saves the names of the images used but doesn't backup the actual image files.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 weeks later...

I have a problem that I don't know how to fix. I have not come across this before. Now I have changed servers and need to re-install OsCommerce from a fresh install I am getting this message when I want to back up the data base. Any suggestions please?

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/gzip) is not within

 

the allowed path(s): (/home/spiritco:/usr/lib/php:/usr/local/lib/php:/tmp) in

 

/home/spiritco/public_html/Shop/admin/backup.php on line 443

 

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/zip) is not

 

within the allowed path(s): (/home/spiritco:/usr/lib/php:/usr/local/lib/php:/tmp) in

 

/home/spiritco/public_html/Shop/admin/backup.php on line 444

Is this a simple "permissions" base problem because I have changed the permissions on the backup folder to 777

I don't understand the "file is not within the allowed path(s)" bit either.

Thanks so much for any help :blink:

Unconditional Love Makes The World Turn.

When we stop and smell the flowers, we can all live instead of merely existing. We spend too much time infront of computers daily and not enough time in wonderment and awe at what we can achieve in life. creating these beasts is both a blessing and a curse!

Believe in yourself as though no one else will and you will find that The World will begin to believe in You Too!

Link to comment
Share on other sites

in your admin / includes / application_top.php

find

 

// Used in the "Backup Manager" to compress backups

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

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

define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');

define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');

 

change to

 

// Used in the "Backup Manager" to compress backups

define('LOCAL_EXE_GZIP', 'gzip');

define('LOCAL_EXE_GUNZIP', 'gunzip');

define('LOCAL_EXE_ZIP', 'zip');

define('LOCAL_EXE_UNZIP', 'unzip');

 

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Thank you soooooo much Nic, :D

you are a life saver! I have been using the MySQL to back up. However I am uncertain of it. Within OsCommerce, I know how to back up and restore as have done this many times over.

 

Now I can get back to "normal". Thank you again.

I really appreciate it :D

Unconditional Love Makes The World Turn.

When we stop and smell the flowers, we can all live instead of merely existing. We spend too much time infront of computers daily and not enough time in wonderment and awe at what we can achieve in life. creating these beasts is both a blessing and a curse!

Believe in yourself as though no one else will and you will find that The World will begin to believe in You Too!

Link to comment
Share on other sites

Thank you soooooo much Nic, :D

you are a life saver! I have been using the MySQL to back up. However I am uncertain of it. Within OsCommerce, I know how to back up and restore as have done this many times over.

 

Now I can get back to "normal". Thank you again.

I really appreciate it :D

 

You're welcome

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...