Codex

Backing Up Your WordPress Files

There are two parts to backing up your WordPress site: Database and Files.

This page talks about Files only; if you need to back up your WordPress database, see the Backing Up Your Database.

Your WordPress site consists of the following files:

  1. WordPress Core Installation
  2. WordPress Plugins
  3. WordPress Themes
  4. Images and Files
  5. Javascripts, PHP scripts, and other code files
  6. Additional Files and Static Web Pages

Everything that has anything to do with the look and feel of your site is in a file somewhere and needs to be backed up. Additionally, you must back up all of your files in your WordPress directory (including subdirectories) and your .htaccess file.

While most hosts back up the entire server, including your site, it is better that you back up your own files. The easiest method is to use an FTP program to download all of your WordPress files from your host to your local computer.

Please read Backing Up Your WordPress Site for further information.

Other ways to backup your files include:

Website Host Provided Backup Software 
Most website hosts provide software to back up your site. Check with your host to find out what services and programs they provide.
Create Synchs With Your Site 
2Bright Sparks's Synchback and WinSCP are programs which allow you to synch with your website to keep a mirror copy of the content on your server and hard drive updated. It saves time and makes sure you have the latest files in both places.

To synchronize your files in WinScp -

Log in to your ftp server normally using WinScp.
Press the "Synchronize" button.

Remote directory will automatically be set to the current ftp directory (often your root directory).
Local directory would be set to the local directory as it was when you pressed Synchronize.
You may want to change this to some other directory on your computer.

Direction should be set to "local" to copy files FROM your web host TO your machine.

Synchronization Mode would be set to Synchronize files.

Clicking "OK" will show a summary of actions, click "OK" again to complete the synchronization.

Copy Your Files to Your Desktop 
Using FTP Clients or UNIX Shell Skills you can copy the files to a folder on your computer. Once there, you can zip or compress them into a zip file to save space, allowing you to keep several versions.

Normally, there would be no need to copy the WordPress core files, as you can replace them from a fresh download of the WordPress zip file. The important files to back up would be your wp-config.php file, which contains your settings and your wp-content directory (plus its contents) which contains all your theme and plugin files

Read Further

WordPress Backups
Video guide to Upgrading - covers file backups

Upgrading WordPress Extended