If this is your first visit, check our documentation. To post, register or login.

Question about Backup mySQL

Started by feznizzle on 5 Feb 2013, 10:14 PM · Views: 959

Results 1 to 7 of 7
5 Feb 2013, 10:14 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Post #1 by feznizzle

Hi,

This is a really dumb question, sorry!

I always backup using Backup MySQL before I do anything. And I have happily restored using these backups many, many times!

My question is this:
When I restore using backup mysql, am I wiping the entire db and then restoring exactly as it was (structure&content) OR am I simply restoring the data (content) to how it was?

The cause of my curiosity is that I am wondering if I add a mod to my site that includes an SQL patch and then decide to get rid of the mod by reverting the files and restoring the db thru Backup MySQL, am I COMPLETELY getting rid of any changes made by the sql patch (including anything structural)?

Need to know because I'm considering installing a mod with sql patch that was made for 139 into a 151 cart. I'll try it just to see what happens, but I'm nervous about sql consequences.

Thanks,
Mike

6 Feb 2013, 4:40 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #2 by picandnix

The backup will revert you back to where you were before you ran the new patch/to the point in time when you created the backup. This would of course not take into consideration any orders received after you created that backup. Hence it's a good idea to got into maintenance mode before running a mod install if you know what you're doing...
Which brings me onto the screamingly obvious issue. Why on earth are you thinking you can 'try' out a mod on a (presumably?) live site, let alone the fact you already know the mood isn't for your version of ZC!!? Set yourself up a dev copy of your store if you want to 'try' things out.
Which mod is it your trying to install?

6 Feb 2013, 4:45 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

The "restore" will drop the existing tables and replace them (structure and data) with whatever is in the backup, thus losing ALL changes (including intentional ones) since the backup was made.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Feb 2013, 4:52 AM
#4
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Post #4 by feznizzle

Thanks for the input, picandnix.

The site is not live. But I still don't want to get set back. I already have about 6 or 7 mods in, running smooth. Plus I have tweeked the daylights out of the template. So I don't want to alter the structure of the SQL, possibly requiring me to run a bunch of sql patches and tweak settings again.

I want to try the mod, if it doesn't work out... reset SQL (data AND structure). I think the mod does work for 151, but if it doesn't, I would like to take a run at getting it to work. If is php that needs work, I might be able to fix it. If it is SQL, I won't be able to fix.

Here is what I want (in case you are curios):
http://www.zen-cart.com/downloads.php?do=file&id=500

6 Feb 2013, 4:53 AM
#5
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Post #5 by feznizzle

Thanks, DrByte!

:clap:

6 Feb 2013, 4:58 AM
#6
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #6 by picandnix

Feznizzle:

Thanks for the input, picandnix.

The site is not live. But I still don't want to get set back. I already have about 6 or 7 mods in, running smooth. Plus I have tweeked the daylights out of the template. So I don't want to alter the structure of the SQL, possibly requiring me to run a bunch of sql patches and tweak settings again.

I want to try the mod, if it doesn't work out... reset SQL (data AND structure). I think the mod does work for 151, but if it doesn't, I would like to take a run at getting it to work. If is php that needs work, I might be able to fix it. If it is SQL, I won't be able to fix.

Here is what I want (in case you are curios):
http://www.zen-cart.com/downloads.php?do=file&id=500

lol, been there done that :-) it works fine in 1.51. I wanted to use the same mod so I too took a chance in my local version of store. It works.

6 Feb 2013, 5:05 AM
#7
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Post #7 by feznizzle

picandnix:

lol, been there done that :-) it works fine in 1.51. I wanted to use the same mod so I too took a chance in my local version of store. It works.

It works? Sweeeeet! Thanks!