Sumac Home Page

Frequently Asked Questions: Backing Up Your Data

Click the topics of interest.

Why bother backing up Sumac data?

How often should I back up Sumac data?

What media should be used for backups?

How do I back up a single-user version of Sumac?

How do I back up a multi-user version of Sumac?

What follow-up is needed?

How can I keep my server computer happy?

Why bother backing up Sumac data?

You use Sumac to manage valuable information. This data describes the details of how your organization works: its contacts, its communications, its revenue.

If your data is not backed up, a simple computer failure can cause you and your organization incalculable damage.

It is imperative that you back up this data on a regular basis.

to top

How often should I back up Sumac data?

You should back up your data on a regular basis. At least weekly, better daily. Loss of a week's data is a nuisance. Loss of a month's data is a serious problem.

to top

What media should be used for backups?

Back up to media that is not in the same location as the computer being backed up.

This can be removable media like a USB key, a writable CD or DVD, a remote backup server, an external hard drive. If you put your backup on relatively unreliable devices (e.g. CD-R or DVD-R), then make sure that the backup program verifies the data after writing it.

Once the backup is performed, remove the media. This does not mean to just turn it off or disconnect it from your computer. You need to physically remove it from your office. If you just put the backup device into a drawer beside the computer being backed up, then the same disaster (flood, fire, theft, lightning, etc.) that destroys the server computer will probably also destroy the backup device.

You should have multiple copies. Don't just back up to one device and re-use it every week. We recommend at least five different backup devices, using a different one each week on a five week cycle. Like any other electronic equipment, they can fail. Having just one or two is not sufficient.

Instead of physically removable media, you can use an online backup service, which sends your data to a remote server.

to top

How do I back up a single-user version of Sumac?

If you use a single-user version of Sumac (Sumac Demo, Sumac Bronze, Sumac Silver), then you should follow these steps to perform your backup:
to top

How do I back up a multi-user version of Sumac?

There are three basic approaches to backing up:
The first approach works on Macintosh and Windows servers. The other approaches only work on Windows.

MySQL Workbench

MySQL Workbench is a program available from MySQL.com. Click here, then click MySQL Workbench 5.2. You need version 5.2 or later, so you may need to download a developer (beta) version. You can use MySQL Workbench to back up your Sumac database to a file.

Manual Backup

If your server is a Windows computer, you may back up your data manually, or writing a script to copy files manually.

Scripted Backup

If your server is a Windows computer, then you can construct a script to do the backup.

Use Notepad to create a text file. Type into it the following five lines (without the line numbers in front of them):

[1] net stop mysql
[2] rmdir G:\backupMySQL\*.* /f /s /q
[3] xcopy C:\mysql\data G:\backupMySQL\ /s /e /h /k /r
[4] net start mysql
[5] pause

Save the file and call it something like "backupSumac.bat". The .bat extension tells Windows that the file holds a batch of commands. Here is what each step does:

[1] shuts down the MySQL server.

[2] deletes the backup on drive G. This assumes that you are backing up to drive G. If you are using a different drive letter, then change G to your letter in this statement and the next one.

[3] copies the database to drive G, putting it into a folder named "backupMySQL".

[4] restarts MySQL.

[5] pauses the batch of commands so you can see the results before the command window closes.

You can then double click the file (running it on the server computer) and it will do the backup. If you are running Windows Vista or Windows 7, then instead of just double clicking the file, you must right-click it, then choose the “Run as administrator” command.

to top

What follow-up is needed?

Even if you think your backup is being performed on a regular basis, check again. Make sure that the MySQL server is being shut down before the backup is performed. Make sure that media are being taken off-site. Make sure that there are multiple copies of backups.

to top

How can I keep my server computer happy?

Heat Dissipation

Computer components produce a lot of heat. If they get excessively hot, they fail. That is why they have fans: to draw in cool air and blow out hot air.

But running too hot on a continuous basis also shortens their lifetime. So take steps to help your computer keep cool:

Power Cycling

A very high portion of computer failures are caused by connections breaking. A leading cause of broken connections is the expansion and contraction caused by thermal cycling: getting hotter then colder then hotter then colder. Ideally, a server should stay powered on all the time.

Contaminants

Do not put your server in a dirty location. Its fans are always sucking air into the case. If the air is dirty, dirt is pulled in along with the air. This dirt gradually works its way into computer components (e.g. disk drives) and causes them to fail.

Here is a list of places where you should not put your server:

Disk Fragmentation (Windows)

If your server is a Windows computer, the disk needs to be regularly defragmented. Fragmentation of a disk occurs because any particular file may be broken into pieces – fragments – that are stored in different places on the disk.

If the fragmentation gets excessive (too many files are stored in several places), performance drops noticeably and the disk drive is strained as it constantly has to reassemble pieces of fragmented files. Eventually, severe fragmentation causes Windows to crash.

Windows Vista and Windows 7 enable you to schedule regular automatic defragmentation. Earlier versions of Windows require you to manually defragment. Every month or two is usually adequate.

to top