How To Backup A Website: Files and Folders

There’s been quite a few requests for a tutorial to backup a website or blog. So I’m going to do a 3 part series this week covering:

  1. Backing up files and folders
  2. Backing up database
  3. Reversing a WordPress upgrade

You may wonder at the third one. It does seem like an odd topic and not related to website backups but it is very relevant because in order to revert to an older version of WordPress, you will need to begin with backups and the method of backup we will show you in this series will make it a whole lot easier to restore a failed WordPress upgrade.

In this tutorial, we will be demonstrating the backup and restore using cPanel because that’s what we use and that’s what we like. There are many ways to do a backup. There are also plugins to help you and make it all automatic and easy. This tutorial will show the manual (and free) way because… let’s just say, I’m the type who believes that you should know how to light a candle or a lamp if your power goes off 🙂

Now we’re ready, let’s go!

Objective: To backup website or WordPress files only, i.e. images, html files, php files, themes, plugin files and such.

Log in to cPanel

Locate the File Manager icon, click it

The File Manager will open in a new window

Click on the home folder (the one with the house next to it). The right pane will refresh and put you in the folder above the one you were before.

Click ‘New Folder’

In the dialog box enter ‘backup’ and New Folder will be created in field blank. Click Create New Folder

You should see your new ‘backup’ folder in the list

Now you’re ready to copy the files you want to back up. Click on the ‘public_html’ link

Select the files and folders you want to backup.

Now, you can do one of two things. You can drag and drop, or use the copy button. I prefer to use the copy button because sometimes the drag and drop tends to move the files instead of copying. With the files still selected, click the Copy button

cPanel File Manager copy

You will then be asked where you want to copy it to. The default is /public_html.

cPanel-Copy-To

You do NOT want to copy it there. You want to copy it to your backup folder you set up earlier. So, replace public_html with backup, keeping the forward slash. Then click Copy File(s)

Enter-your-copy-to-folder-name

The process might take a moment or two if you have a lot of themes or plugins. They will be copied into the ‘backup’ folder. To check they are there, click the ‘backup’ folder’s link and you should see the contents on the right pane.

Congratulations! You have just backed up your files and folders. If you do not plan on downloading your backup, you can stop here.

Storing backups on the site itself it not always a great idea though. So downloading it would be a good idea for the longer term. To do that, click on the home folder again to bring you one level up. On the right pane, select the ‘backup’ folder.

Then click ‘Compress’ from the toolbar

In the dialog box, select ZIP and you can leave the rest as is. Click Compress.

When it is done you will see a screen like this with the results and a zipped file in your /home/yoursite/ folder named backup.zip

You can click on the ‘backup.zip’ file and then click Download and save to your computer.

Next, we will walk you through how to backup your database.

Do You Want A Hands-Free Business?

Then get this guide to help you systemize your business so you'll have more time working on your business.

!
!

Hey! I want to make sure you know what you're getting here. In addition to the guide, you will also receive our memo that includes special offers, announcements and of course actionable information.

Terms and Conditions checkbox is required.
Something went wrong. Please check your entries and try again.
Facebook Comments

10 Comments

  1. Al on September 2, 2010 at 7:32 pm

    Sounds like a simple task but it’s great to see this step by step! Thanks – I’m planning to help a friend do this!

    🙂

    Al



  2. Lynette Chandler on September 2, 2010 at 7:49 pm

    Hey Al. I took time to break it down to really tiny steps so it might
    seem like a lot. Once you get to actual doing it will feel like a very
    short and quick exercise. Good luck with your friend’s site!



  3. Imie Belanger on September 2, 2010 at 9:52 pm

    Thanks Lynette, this tutorial is perfect for people like me:) thank you for understanding that need!



  4. Lynette Chandler on September 2, 2010 at 10:44 pm

    Not a problem at all Imie. There are two more parts, make sure you
    bookmark them too. Part 2 appears tomorrow, Part 3 on Saturday.



  5. LaTara Ham-Ying on September 3, 2010 at 1:06 am

    Thank Lynette,

    I needed this as I am trying to steer clear of the WordPress plugins for backups. None of them are updated and the one I was using started causing my database to crash.

    I was not a happy camper 🙂



  6. Lynette Chandler on September 3, 2010 at 2:17 am

    Hey LaTara, wow that is some experience. I don’t use any of the backup
    plugins although I must say Backup Buddy looks really interesting. But
    your experience there is prime example why I do things the way I do,
    or maybe I’m just old fashioned LOL.



  7. bilinguepergioco on February 27, 2011 at 4:59 pm

    Thanks! Very clear!



    • Lynette on March 2, 2011 at 12:29 pm

      You’re welcome and thank you.