Zen Cart Logo
Forums / General Questions / How do I properly back up Zen-Cart and CUSTOM folder?

How do I properly back up Zen-Cart and CUSTOM folder?

Locked

Views: 2,258

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
25 Oct 2008, 11:08 AM
#1
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

How do I properly back up Zen-Cart and CUSTOM folder?

All that work I been doing on the website, I think I should be backing it up.

So how do I do this properly? I don't want to lose my custom folder, which "Cherry_Zen" is considered my custom folder. What files do I need to save to save my content, catagories, Ezpages., images, etc

25 Oct 2008, 11:48 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

Remember there are TWO components to back up if you want to do a full back up of the site:

  1. The database
  2. The program's folders and files

Your host may provide a backup feature via C-Panel, or you may have an agreement with your host (like I do) to provide DAILY backups of the site.

If you have the C-panel backup feature, use this as your principal option, but note that doing a RESTORE will probably be possible only by the host.

To back up the database, you should use the feature in phpMyAdmin.

To back up your core files, you can choose a number of options, including FTP of these files back to your hard drive (or other backup area).

25 Oct 2008, 1:48 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How do I properly back up Zen-Cart and CUSTOM folder?

Probably the easiest way to back up the files is to not need to.

What a lot of us here do is unzip a copy of the Zencart zip file on our local computers, and duplicate the CUSTOM folders and files in that, identical to the cart on the server.

Then, when we want to edit a file, we edit the local copy and then upload the edited file to the server. That way, you always have a current copy of your site on your local hard drive.

25 Oct 2008, 4:00 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

GOOD SYSTEM, Steve !

I'll adopt it right away... :smile:

25 Oct 2008, 6:35 PM
#5
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

stevesh:

Probably the easiest way to back up the files is to not need to.

What a lot of us here do is unzip a copy of the Zencart zip file on our local computers, and duplicate the CUSTOM folders and files in that, identical to the cart on the server.

Then, when we want to edit a file, we edit the local copy and then upload the edited file to the server. That way, you always have a current copy of your site on your local hard drive.
I use this method as well, Steve. And of course, I also back up my db (I use a MySQL backup mod, but if not, phpmyadmin is the most reliable method).

One question, though. When you make changes to pages in Tools>Define Pages Editor, is this all saved in the database or must they be backed up separately?

Vito

25 Oct 2008, 6:37 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I properly back up Zen-Cart and CUSTOM folder?

vito:

When you make changes to pages in Tools>Define Pages Editor, is this all saved in the database or must they be backed up separately?
They must be backed up separately. You'll find them in the includes/languages/english/html)includes folder. Better still, create an override file for your template before editing them, and that's the one that will get changed.

26 Oct 2008, 7:39 PM
#7
vito avatar

vito

Zen Follower

Join Date:
Mar 2006
Posts:
182
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

Thanks kuroi. :)

Vito

27 Oct 2008, 6:57 AM
#8
webbydeb avatar

webbydeb

Zen Follower

Join Date:
Oct 2008
Location:
Denver, CO
Posts:
65
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

kuroi:

They must be backed up separately. You'll find them in the includes/languages/english/html)includes folder. Better still, create an override file for your template before editing them, and that's the one that will get changed.
How do you create an override file? I feel like a simpleton!:unsure:

28 Oct 2008, 6:18 AM
#10
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

stevesh:

Probably the easiest way to back up the files is to not need to.

What a lot of us here do is unzip a copy of the Zencart zip file on our local computers, and duplicate the CUSTOM folders and files in that, identical to the cart on the server.

Then, when we want to edit a file, we edit the local copy and then upload the edited file to the server. That way, you always have a current copy of your site on your local hard drive.

This sounds really good, I tried this once before, when I open my local site up it brings me to my editor for php. Any ideas?

28 Oct 2008, 9:36 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How do I properly back up Zen-Cart and CUSTOM folder?

chris32882:

when I open my local site up it brings me to my editor for php. Any ideas?This sounds normal. On your local system the .php extension will be associated with your PHP editor. So to open your site you would need (on Windows) to right click the index.php file and "Open With" a browser.

That's a bit irritating, so you will probably want to bookmark the local site in your browser, and access it from the browser each time.

29 Oct 2008, 1:36 AM
#12
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

kuroi:

This sounds normal. On your local system the .php extension will be associated with your PHP editor. So to open your site you would need (on Windows) to right click the index.php file and "Open With" a browser.

That's a bit irritating, so you will probably want to bookmark the local site in your browser, and access it from the browser each time.

yeah that works, thanks!

8 Nov 2008, 11:09 PM
#13
tezla avatar

tezla

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

Re: How do I properly back up Zen-Cart and CUSTOM folder?

vito:

I use this method as well, Steve. And of course, I also back up my db (I use a MySQL backup mod, but if not, phpmyadmin is the most reliable method).

Vito

Is this the one you use?

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=81

After setting up some osCommerce stores (this is my first ZenCart one) I was very surprised to find the super simple integrated Database Backup feature missing from ZC Admin.