1.1

Table Of Contents
drwxrwxr-x 2 jpearson users 512 Apr 7 15:09 .
bash-2.05$
Backing Up and Restoring Online Disk Stores
When you invoke the sqlf backup command, SQLFire backs up disk stores for all members that are running
in the distributed system at that time. Each member with persistent data creates a backup of its own conguration
and disk stores.
Backup Guidelines and Prerequisites on page 92
Back Up an Online Disk Store on page 92
What the Online Backup Saves on page 93
Restore an Online Backup on page 93
Backup Guidelines and Prerequisites
Run the backup during a period of low activity in your system. The backup does not block any activities in the
distributed system, but it does use le system resources on all hosts in your distributed system and can affect
performance.
Optionally, compact your disk store before running the backup. See Compacting Disk Store Log Files on page
89.
Only use the sqlf backup command to create backup les from a running distributed system. Do not try
to create backup les from a running system using le copy commands. You will get incomplete and unusable
copies.
Back up to a directory that all members can access. Make sure the directory exists and has the proper permissions
for your members to write to it and create subdirectories.
Make sure there is a sqlfire.properties le for the distributed system in the directory where you will
run the sqlf command, or specify the multicast port or locator properties to connect to the cluster (for example,
-mcast-port= port_number). The command will back up all disk stores in the specied distributed system.
The directory you specify for backup can be used multiple times. Each backup rst creates a top level directory
for the backup, under the directory you specify, identied to the minute.
You can specify a directory by one of two methods; the command in the procedure below uses the rst method.
Use a single physical location, such as a network le server. Example:
/export/fileServerDirectory/sqlfBackupLocation
Use a directory that is local to all host machines in the system. Example:
./sqlfBackupLocation
Back Up an Online Disk Store
1. Run the backup command, providing your backup directory location. Example:
sqlf backup /export/fileServerDirectory/gemfireBackupLocation
-locators=warsaw.vmware.com[26340]
2. Read the message that reports on the success of the operation.
If the operation is successful, you see a message like this:
Connecting to distributed system: locators=warsaw.vmware.com[26340]
The following disk stores were backed up:
DiskStore at hosta.vmware.com /home/dsmith/dir1
DiskStore at hostb.vmware.com /home/dsmith/dir2
Backup successful.
vFabric SQLFire User's Guide92
Managing Your Data in vFabric SQLFire