Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Posts
    36
    Plugin Contributions
    0

    help question Backing up site via host's cPanel - is this good enough for moving to another host?

    Hi there,

    I am really sorry if this has been answered before, but I have been round the houses and back and can't seem to find it.

    I want to move my site to different host and have read your posts regarding backing up the site via phpMyAdmin. As I am not an expert in site management and know that if it can go wrong, it probably will, after looking at the database folders etc., I decided not to go along this route.

    My cPanel does offer backups of the following - Home Directory, mySQL, and Email Forwarders and Filters. These are saved as GZ files.

    Would anybody know if these back ups will be sufficient to move my site to another host or am I better off trying to learn what to do with the phpMyAdmin?

    Thank you for taking the time to read my post, hope to hear from someone soon

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

    Default Re: Backing up site via hosts cPanel

    There are TWO components to the backup:

    1. The database
    2. The folders and files

    Let's start with 2...

    Download all the ZC folders and the respective files to your hard drive via FTP. It is often best to do this in "stages" - ie: a few "folders" at a time, to minimize potential errors that can occur during ftp. I usually do the admin folder on its own, and likewise the includes folder, as these usually contain several MB of files.

    Now, backing up the database... The CPanel option generally is for restores on the existing server, and will only allow the host to perform a restore. I favour phpMyAdmin, as it gives you full control.

    If you navigate to phpMyAdmin, you will see two "frames". The LH frame lists all databases you have operational. Click on the one relevant to your store. Naturally, if you have other databases and you want to use these on your new installation, then you will have to "backup" (export) them too.

    After clicking on your store database in the left frame, the right frame will refresh showing all the tables. Across the top will be some menu tabs.

    Click EXPORT.

    Then the screen will refresh, offering a few options. You want to EXPORT all tables, so select ALL . Then, make sure the SQL radio button is chosen.

    Then, you need to choose what options to include in the export:

    These are a series of radio buttons / check-boxes, and generally, the ones selected by "default" are all you will need. I make sure the following are included.

    OPTIONS: Select COMMENTS... leave the others unchecked.

    STRUCTURE: I just select these:

    Add IF NOT EXISTS
    Add AUTO_INCREMENT value
    Enclose table and field names with backquotes


    DATA - check this checkbox.
    ... and the following:

    Complete inserts
    Extended inserts
    Use hexadecimal for BLOB


    Export Type: select INSERT

    (Scroll down a bit) - on extreme bottom right, click GO button...

    depending on the SIZE of your database, this may take a few minutes, but the screen will refresh and you will see a large textbox containing ALL the SQL with the tables and data.

    You now need to highlight all this stuff and COPY it to your clipboard.

    Then, just PASTE it into a notepad file and save it as my_database.sql on your local machine.

    You now have all the SQL needed to populate your NEW database on the new server.

    If you move to a reputable, certified host, they will usually import this into your new setup, so you just need to send them the file.

    If you want to do it yourself, create a NEW empty database on your new server.

    Click the SQL menu option.

    When the empty input field comes up (if it contains any sql just delete that) open that notepad file of your original database sql and copy all of it again to your clipboard.

    Put your cursor inside the empty sql field in the new database screen.

    PASTE the contents of the clipboard so all your sql appears in the field (textbox) and then click GO.

    You will now have your database on the new server.

    It is important to make sure that the MySQL versions on the NEW server are compatible with those on the OLD server.
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2009
    Posts
    36
    Plugin Contributions
    0

    Default Re: Backing up site via host's cPanel - is this good enough for moving to another hos

    Oh my gosh, thank you soooo much you have answered everything and more. I can't thank you enough.... but maybe a coffee will suffice for now.

    Thanks again schoolboy.

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

    Default Re: Backing up site via host's cPanel - is this good enough for moving to another hos

    Before you finally cut ties with your OLD host, practice what I say above.

    If you make errors, you can always delete the database on the NEW server, and try all over again.

    Generally, when I move hosts, I don't "wave goodbye" to the old host until I see my stores operational on the new host. I also have a dedicated "dev" server where I move all my clients to anyway, so I ALWAYS have a "working copy" of all websites - just in case...
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2009
    Posts
    36
    Plugin Contributions
    0

    Default Re: Backing up site via host's cPanel - is this good enough for moving to another hos

    Thanks for the heads-up schoolboy

    My current host is active for another year yet so I guess there is not rush to change, but tbh the sooner I can move to a new host the better for me.

    Saying that, I certainly have taken on board everything you've said - copy and pasted your reply into my word program for reference as well and no, I won't do anything rash until I've had a few practise runs in phyMyAdmin.

    Thank you so much again - you're a star

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Backing up site via host's cPanel - is this good enough for moving to another hos

    There's also the FAQ article on the topic: https://www.zen-cart.com/tutorials/i...hp?article=100
    .

    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.

 

 

Similar Threads

  1. v139h Took over site, moving to another host, missing information to make this go smooth
    By Jeremiah H in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 10 Sep 2012, 08:08 PM
  2. Moving from one Host to another Host
    By Yizit in forum Installing on a Linux/Unix Server
    Replies: 13
    Last Post: 13 Apr 2009, 02:47 PM
  3. Moving Site from one host to another. Can't log into admin
    By dinki in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 6 Mar 2009, 07:37 PM
  4. Cpanel host to host move will it work
    By cshart in forum General Questions
    Replies: 3
    Last Post: 1 Jan 2007, 12:30 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