1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Backing Up a WordPress Site Properly

Discussion in 'White Hat SEO' started by teeniegenie, Feb 14, 2011.

  1. teeniegenie

    teeniegenie Supreme Member

    Joined:
    Aug 28, 2010
    Messages:
    1,296
    Likes Received:
    662
    Location:
    The Cool Part of Vegas
    I searched around BHW and wasn't able to find any info on the best way to backup my WordPress sites in case my hosting ever died so I thought I'd ask.

    My buddy just went through the really fun process of rebuilding all of his sites--:(--because the web host suddenly went out of business and the C-Panel was not accessible anymore.

    Any recommendations on the best way to backup all of my WP sites? I'm sure there are programs/software to purchase or maybe a free option is better.

    Just so you know, I'm a novice at handling server/file issues but I do have FileZilla on my laptop and could transfer files around if needed.
     
  2. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    First backup all the files, core wordpress files plus your theme, plugins etc. Login to your server via ftp, navigate to the root directory of your wordpress installation and just do a recursive download of everything to your home PC.

    Then you have to back up the database which is where all the important stuff is stored. You will have specified a database name, username and password when you installed wordpress - it will be stored in wp-config.php.

    If you have shell access to your server, just do a database dump:
    mysqldump -u username -p password db_name > db_name.sql

    where username is your WP username, password is your WP password and db_name is the name of your WP database. Then download your exported database to your local PC.

    If you don't have shell access, there are a number of wordpress database backup plugins you can use which may be easier anyway. This is a commonly use one:

    http://wordpress.org/extend/plugins/wp-db-backup/

    although others exist as well. Same thing applies, after you have made the database dump you just download it to your local PC.

    Then backup your stuff to external media (eg external hard drive) and preferably store it off the premises!
     
    • Thanks Thanks x 1
  3. teeniegenie

    teeniegenie Supreme Member

    Joined:
    Aug 28, 2010
    Messages:
    1,296
    Likes Received:
    662
    Location:
    The Cool Part of Vegas
    This is perfect. I appreciate the helpful info! Thanks and + rep given.
     
    • Thanks Thanks x 1