Backing Up and Restoring the RightFax 9.0 Server and Database

This document provides instructions for backing up and restoring the RightFax server software and SQL database using Microsoft's OSQL command-line utility. The OSQL utility is automatically installed on your SQL server when you install either the full version of SQL or the MSDE SQL database provided with the RightFax server software. Backing up the server requires a separate backup storage device or software utility. Captaris does not provide support for third-party backup tools, and so you should be familiar with your organization's software backup tools and protocols before scheduling regular backups.

Contents

  1. Backing up and Restoring the RightFax Server Software

  2. Backing up the RightFax Database

  3. Restoring the RightFax Database

Backing up and Restoring the RightFax Server Software

Backing up the RightFax Database

RightFax stores most of its data in a SQL database which is stored and maintained separately from the core server software. Depending on how the RightFax server software was installed, this database may be on a separate SQL server on your network, or an MSDE SQL database installed directly on the RightFax server computer. To perform a backup of the RightFax database, you must know where this database is installed, and you must have a user ID and password with administrative access to the database.

To back up the RightFax database using OSQL

  1. Open a command prompt on the SQL server or on the RightFax server if you are using MSDE SQL.

  2. Navigate to C:\Program Files\Microsoft SQL Server\MSSQL\Binn

  3. Enter the command:

    osql -U
    UserID -PPassword -HServerName

    Where UserID is a SQL user ID with administrative access, Password is the password for the specified user, and ServerName is the machine name of the server where the database is located. (When SQL is installed, the default user ID is "sa" and the default password is blank.)
    Note that the commands and parameters are case-sensitive.

  4. On the command line that follows, enter the following command set:

    BACKUP DATABASE rightfax TO DISK = '
    C:\Backup\rightfax.bak' [Enter]
    go
    [Enter]
    exit
    [Enter]

    Where C:\Backup is the name of the folder where you want the backup file to be stored. This can be a local folder or a folder on any mapped drive on the network. The backup process may take several minutes, depending on the size of the database.
    Note that the commands and parameters are case-sensitive.

To create a batch file for automating the database backup

To automate the database backup at a scheduled time you can create a batch file which will execute the OSQL backup command, and then add the batch file to your Scheduled Tasks list in Windows Control Panel.

Caution: This batch file will overwrite any existing backup file in the target folder without prompting for confirmation.

The batch file should contain only the following command:

osql -UUserID -PPassword -HServerName -Q"BACKUP DATABASE rightfax TO DISK = 'C:\Backup\rightfax.bak'"

Where UserID is a SQL user ID with administrative access, Password is the password for the specified user, ServerName is the machine name of the server where the database is located, and C:\Backup is the name of the folder where you want the backup file to be stored. (When SQL is installed, the default user ID is "sa" and the default password is blank.) Note that the commands and parameters are case-sensitive.

Restoring the RightFax Database

Follow these steps to restore the RightFax database from a backup:

  1. Open a command prompt on the SQL server or on the RightFax server if you are using MSDE SQL.

  2. Navigate to C:\Program Files\Microsoft SQL Server\MSSQL\Binn

  3. Enter the command:

    osql -U
    UserID -PPassword -HServerName

    Where UserID is a SQL user ID with administrative access, Password is the password for the specified user, and ServerName is the machine name of the server where the database is located. (When SQL is installed, the default user ID is "sa" and the default password is blank.)

  4. On the command lines that follow, enter this command set:

    RESTORE DATABASE rightfax FROM DISK = '
    C:\Backup\rightfax.bak' [Enter]
    go
    [Enter]
    exit
    [Enter]

    Where C:\Backup is the name of the folder where the backup file was stored. The restore process may take several minutes, depending on the size of the database.