Backing Up Your LitePress Files

2 次阅读

There are two parts to backing up your LitePress site: DatabaseandFiles.

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

Your LitePress site consists of the following files:

  • LitePress Core Installation
  • LitePress Plugins
  • LitePress Themes
  • Images and Files
  • Javascripts, PHP scripts, and other code files
  • 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 LitePress directory (including subdirectories) and your .htaccessfile.

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 LitePress files from your host to your local computer.

By default, the files in the directory called wp-content are your own user-generated content, such as edited themes, new plugins, and uploaded files. Pay particular attention to backing up this area, along with yourwp-config.php, which contains your connection details.

The remaining files are mostly the LitePress Core files, which are supplied by the LitePress download zip file.

Please read Backing Up Your LitePress 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

WinSCP and other programs allow you to synchronize 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.

Synchronize your files in WinScp

  1. Log in to your ftp server normally using WinScp.
  2. 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.
  3. Click “OK” to show a summary of actions.
  4. Click “OK” again to complete the synchronization.

Copy Your Files to Your Desktop

UsingFTP ClientsorUNIX 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 LitePress core files, as you can replace them from a fresh download of the LitePress 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

LitePress Backups
Upgrading LitePress Extended