Documentation

Light-weight, fast, simple and powerful!
 
Translations of this page?:

Making backups of Wolf CMS

As all administrators are aware, having correct backups of your machines and software is extremely important in the event of a calamity.

This section describes the best way to make a backup for disaster recovery purposes and documents the various methods used to create database backups.

DISCLAIMER - While we make every effort to give you correct and useful backup techniques, we are not responsible for any damage or loss of information that might occur.

General tips on making backups

  • Always backup the Wolf CMS directory and the Wolf CMS database at the same time1) to prevent inconsistencies between the filesystem and database contents.
  • Create independent backups. Even if your hosting provider makes regular backup, always do so yourself too. This could save you a lot of trouble if you ever have a conflict with your hosting provider for example.

Backing up the filesystem

Creating a filesystem backup is very easy in both a Unix/Linux and a Windows environment assuming you have the right tools available. We expect you to have:

  • SSH access in case of a remote server
  • An (un)zip tool like TAR/GZIP or WinZip.

We will describe the Unix/Linux and Windows procedures separately.

Unix/Linux

  1. Access your webserver, remotely if applicable.
  2. Change directories to your Wolf CMS root2).
  3. Use the tar & gzip commands to create a backup.

An example set of commands assuming Wolf CMS lives in a “wolf” subdirectory would be:

cd /home/myuser/www/wolf
tar -cf /home/myuser/wolf-filebackup-20090325.tar *
gzip /home/myuser/wolf-filebackup-20090325.tar
  1. Move the resultant backup file3) to a safe location like a special backup CD in a fire proof container.
  2. Do not forget to remove the backup from your webserver afterwards to prevent unauthorized users from getting your entire site.

Windows

  1. Access your webserver, remotely if applicable.
  2. Go to your Wolf CMS root folder4).
  3. Use your favourite zip tool to create a zipfile containing the entire contents of the Wolf CMS root folder.
  4. Give the zipfile a logical name like wolf-filesbackup-20090315.zip5)
  5. Move the resultant backup file to a safe location like a special backup CD in a fire proof container.
  6. Do not forget to remove the backup from your webserver afterwards to prevent unauthorized users from getting your entire site.

Backing up the database

Your Wolf CMS database contains most of your site. It includes the layouts, snippets, users, plugin configurations and actual site contents. It is therefore crucial to have a complete and working backup.

Since each database system has its own unique backup techniques, we will describe the generally accepted methods to create a correct backup for each database type.

MySQL

Generally speaking, you can create backups of a MySQL database with web-based tools like phpMyAdmin or the commandline tool mysqldump.

If you have an account with a hosting provider, you will need to check with them on how you can make a database backup. Some hosting provider provide you with backup options in the control panel that belongs to your site's account.

If you have commandline/ssh access to your account and want to use the mysqldump command:

# mysqldump --opt -u username -p databasename > database_backup_file.sql

For more detailed information on backup and recovery of MySQL databases, please see the following resources:

MySQL version Webpage
MySQL 6.0 http://dev.mysql.com/doc/refman/6.0/en/backup-and-recovery.html
MySQL 5.4 http://dev.mysql.com/doc/refman/5.4/en/backup-and-recovery.html
MySQL 5.1 http://dev.mysql.com/doc/refman/5.1/en/backup-and-recovery.html
MySQL 5.0 http://dev.mysql.com/doc/refman/5.0/en/backup-and-recovery.html
MySQL 4.1 http://dev.mysql.com/doc/refman/4.1/en/backup-and-recovery.html

SQLite

Nothing yet..

1) Or almost the same time.
2) This is the directory in which you placed all of the Wolf CMS files during installation.
3) In this case: /home/myuser/wolf-filebackup-20090325.tar.gz.
4) This is the folder in which you placed all of the Wolf CMS files during installation.
5) Date is in ISO 8601 standard YYYYMMDD.
 
administration/making_backups.txt · Last modified: 2011-09-12 00:46 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside