Backup and Restore of ZENworks for Handhelds
Novell Cool Solutions: Feature
Digg This -
Posted: 6 Jan 2003
The ZfH database and installation directory should be included in your regularly scheduled backups.
- The ZfH database stores all information about scheduled jobs and clients and can be either a Microsoft SQL Server (possibly on a remote machine) or a Microsoft Access database (stored locally).
- The installation directory contains program executables and DLLs, the ZfH Repository (which stores job result information and change analysis data collected from clients) and message queue data (all incoming and outgoing messages).
The key to a successful backup/restore policy for ZfH is to ensure the database and installation directory are backed up at the same time so that they are in sync in case they need to be restored.
Here is how to backup and restore the ZfH installation.
Before backing up the ZfH installation directory (and database), you should shut down all ZfH services before running the backup and ensure no ZfH Administrators are accessing the installation.
This will ensure the ZfH database and repository are in sync in case you need to restore them.
To shutdown the ZfH services
If your backup program supports ?pre and post backup commands?, you can have the backup program perform the work of stopping and starting the services.
- . To stop the services, use:
net stop "ZENworks for Handhelds Server"
net stop "ZENworks for Handhelds Messenger"
- . To re-start the services, use:
net start "ZENworks for Handhelds Server"
This will restart all required services.
If you are using SQL Server (especially on a remote machine), try to back up the database and ZfH installation directory during the same backup session using a single backup for both (i.e., don't use a separate application to backup the file system and another application to back up the ZfH [SQL] database).
If using an Access database, it will be backed up when backing up the ZfH installation directory.
If the machine where ZfH is installed needs to be replaced, follow the steps below:
- Rebuild the machine.
- Restore the ZfH database (if using Microsoft SQL server).
- Restore the ZfH installation directory (or re-install ZfH and then restore the installation directory).
To restore the ZfH machine
- Restore the machine where ZfH will be installed. This should include the registry and file system information. If your backup for some reason does not include registry information, you will need to re-install ZfH and then restore the ZfH installation directory (see below).
- If necessary, re-install/restore Microsoft SQL Server and restore the ZfH SQL database from the most recent backup.
- Restore the ZfH installation directory. By default, the installation directory is: C:\PROGRAM FILES\NOVELL\ZFH
- After the restore is complete, restart the ZfH services on the machine using the Services applet in the Control Panel.
The ZfH Server installation should now be functional.
If you need to re-install ZfH because the registry wasn't backed up or because you are moving the ZfH installation to another machine, perform the following.
- Create the ZfH Service user account on the machine where you are restoring ZfH.
- Install the ZfH Server software on the machine as described in the ZENworks for
Handhelds Administration Guide.
- If the original ZfH installation was using Microsoft SQL Server for its database, be sure to specify the exact machine and database name of the ZfH SQL Server database.
- If using SQL, you will be notified that the database already exists. Click OK.
Before restoring the installation directory:
- Close the ZfH Administrator Console.
- Stop all the ZfHServices. Open the Control Panel and select Services. Highlight the ZENworks for Handhelds services individually and select Stop.
- Restore the installation directory from the backup. By default, the installation directory is: C:\PROGRAM FILES\NOVELL\ZFH Restore the entire ZfH Server directory including subdirectories.
- After the restore is complete, restart the ZENworks for Handhelds services on the machine using the Services applet in the Control Panel.
The ZfH Server installation should now be functional.
Depending on when your most recent backup of the ZfH installation database and installation directory occurred, the ZfH server may have created new messages (for example, a new distribution) or received messages from clients after the backup occurred.
To ensure the ZfH server and client messages are reconciled after restoring the ZfH installation database, you should use the resend schedule option so that messages are synchronized.
To resend messages to all machines
- In the Machines tab, select the All Sync Machines machine group.
- Open the Operations menu and select Resend Schedule(s).
This will synchronize all messages for the selected machines (or groups).
- If messages from SyncMachines were processed by the ZfH Server after the backup, when ZfH and the database is restored, those messages will be lost and those job results will show as ?pending? indefinitely.
- New Sync Machines that register with the ZfH Server between the time the last backup occurred and the restore must be re-installed so that they can re-register.
For more info about ZENworks for Handhelds, check out the ZENworks for Handhelds Resource Library.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com