Thread: Backing up

Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Backing up

    Hey guys what files and folders would i have to back up for my store to be the same it is now if it crashes i am using godaddy and windows based hosting also i named my zencart folder something weird when i started my website and want to change the name fo the folder if i do everything will stop working were else must i update the name?

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Backing up

    ALL files and folders PLUS MYSQL database..

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Backing up

    I don't know if you can do this on godaddy, but if you have a shell, set your working directory to your web root and type:

    tar -cvzf MMDDYYY_tar.gz *

    replace MMDDYYY with the current date.

    That will wrap your entire site up into one nice file you can save.

    To restore your shop, place the tar file in your web root and type:

    tar -xvzf MMDDYYY.tar.gz

    and all your files will be back.

    This will NOT save your database. use either phpMyAdmin or the backup_mysql module to do that.

    PS: I'm not so smart with Windows, so if this make no sense, just ignore.

  4. #4
    Join Date
    Jan 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Backing up

    like right now the url is something like this


    http://mysite.com/zencart new/index/php


    i dont want the zencart new/

    to show up over there how can i fix this

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Backing up

    There are plenty of posts, as well as FAQ and Tutorials, on how to move your site.

    If you are looking to move it up to the root directory, then the best advice is to use the file/folder "copy" feature (not "move") on your hosts admin c-panel facility.

    You should also back-up/copy your database and then create a new database with a different name into which you "insert" the copied database

    In this way, the COPY does not alter your current configuration.

    After you have COPIED the ZC folders and files to the root, you will do the necessary edits to the configure.php files in the copied version. You point everything to the copied database as well.

    You may also have to run fix_cache_key.php once the move is complete.

    You may need to check any hard-coded URL's that would have pointed to the set-up in the sub-folder.

    Remember... while you are doing this copying, your LIVE store may still be actively working - so if people make purchases, set up accounts, etc on your existing store, these transactions will not be reflected in the copied database. (The copy is technically a "snapshot" of all activity up to the very last moment it was copied.)

    So, it's a good idea to put your store into Maintenance Mode to stop transactions being written to the original database.

    Then, get the copying done asap, so you can return to a live store with minimal down-time.

    (It's safe to copy the files and folders without using Maintenance Mode. You only need to suspend your store at the point at which you will be shifting the database.)
    20 years a Zencart User

  6. #6

    Default Re: Backing up

    I use Godaddy as well... This is what I do to back up my site.

    First, as mentioned, back up your entire site, the vital directories are your admin and includes directories. If you have added mods like google checkout that created other directories you need to back them up. You should back up everything tho.

    Second, In godaddy....

    Go to your hosting account where the databases>sql is located. Run a backup of the current database. This can take from 5 mins to a few hours depending on the amount of data that you have there.

    This will save the database under the _db directory.

    Download this and save it for later so you have a copy of it.

    with the directory and database backups made, you have a full restore if something happens. Godaddy runs backups everynight but if something happens, good luck getting them to go back and recover the db. I lost 4 months of work from not doing a regular backup. (they screwed up) So, do not leave the database on the server make sure you have a local copy as well. Good luck and feel free to ask me if you have any questions relating to Godaddy and the site. I am not an expert but have it all pretty well down by now.

  7. #7

    Default Re: Backing up

    Quote Originally Posted by jaken1913 View Post
    like right now the url is something like this


    http://mysite.com/zencart new/index/php


    i dont want the zencart new/

    to show up over there how can i fix this
    You need to copy all your files from the zencart folder to the root of the site.

    Go to your configure.php (includes/configure.php and remove the /zen foldername from the enteries listed.

    Go to admin/includes/configure.php and do the same.

    There are like 4 or 6 places the file needs to be edited for each location.


    So, when you are in the file manager of godaddy your directory will look something like this:

    _db_backup (database backups)
    .hcc.thumbs
    cache
    download
    editors

    so on etc...

 

 

Similar Threads

  1. Replies: 4
    Last Post: 12 Dec 2014, 06:02 PM
  2. backing up
    By devinej1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Oct 2009, 10:50 AM
  3. Backing up database?
    By Billyboy in forum General Questions
    Replies: 1
    Last Post: 6 Aug 2009, 03:10 PM
  4. Backing up.
    By Neil Bateman in forum General Questions
    Replies: 3
    Last Post: 20 Apr 2009, 05:41 PM
  5. Backing Up
    By goldmarkpromo in forum Basic Configuration
    Replies: 3
    Last Post: 2 Mar 2009, 11:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg