Topics
- LLDB
- database system
- database server
- NetSol utility script
- db_snapshot
- dataset
- LeasePak tables
- notebook tables
- Hosts
- DBMS host
- LeasePak
- LeasePak instance
- LeasePak release
- General
- job
- backups
- full backups
- incremental backups
- native backup utility
- quiescent
- OS
- disk drive
- filesystem
- NFS-mounted filesystem
- media
- Storage segment
- log storage segment
- transaction log
- Users & Roles
- System Administrator
- Queue Manager
- C-ISAM files
- $ENVDIR/data
Planning Backups
NetSol strongly recommends ...
That the System Administrator perform database backups at least daily. These backups should include regular full backups as well as properly scheduled incremental backups. With the Sybase database system, it may also be necessary to backup the transaction log periodically as well. If the administrator is unsure of the best procedures for scheduling backups, he or she should contact the NetSol Help Desk to obtain guidance.There are a number of ways of performing backups, including:
- Each database system has a native backup utility. This can be used to obtain backups of not just the LLDB but also of important database system configuration information, and in a manner that facilitates the proper restoration of the entire system.
- Each OS has a native backup utility, or more, which could potentially be used to capture images of the devices on which the database system resides.
- There are third-party backup and archival packages available on all LeasePak OSs.
-
The administrator can also use the LeasePak utility,
db_snapshot
. This program is the counter-part to thedb_restore
program discussed above.
Each method has good and bad features:
-
database system native backup utility:
-
Good: can perform backups that allow easier retoration of an LLDB.
Good: can include general database system matter as well.
Good: optmized by the vendor for that database system.
Good: can perform backups while the database is online. -
Bad: does not backup the
$ENVDIR/data
directory by default, and may not be able to do so at all.
Bad: backups are sometimes incompatible with database server instances on other hosts.
Bad: cannot be used to completely restore the database system in the event of a media failure.
-
Good: can perform backups that allow easier retoration of an LLDB.
-
OS native backup utility:
-
Good: can easily backup disks containing LLDB data, as well as database system configurations and
$ENVDIR/data
. -
Bad: can be complex to use.
Bad: not very reliable for restoring less than the entire DBMS host.
Bad: database must be quiescent while the backup is performed.
-
Good: can easily backup disks containing LLDB data, as well as database system configurations and
-
third-party backup utility, often part of a larger management tool suite:;
-
Good: may have sophisticated ease-of-use features.
Good: may have the capability to do the right thing in regards to backing up and restoring database systems.
Good: may have the capability to handle the$ENVDIR/data
directory correctly. - Bad: Potentially has all the bad points of the first two options above.
-
Good: may have sophisticated ease-of-use features.
db_snapshot
, a NetSol utility script:-
Good:
db_snapshot
has been optimized for use with both Sybase and Oracle.
Good:db_snapshot
understands the$ENVDIR/data
directory perfectly.
Good: resulting datasets are compatible, except some Sybase notebook tables, with any LeasePak instance of the same release version on any supported OS and on any supported database system. -
Bad: does not perform snapshot to backup media, only to disk or NFS-mounted filesystems.
Bad: requires running thedb_snapshot
utility then archiving the resulting dataset directory to backup media.
Bad: does not address backup and restore of entire database system, only one LLDB.
Bad: LLDB must be quiescent while the backup is performed.
-
Good:
db_snapshot
is useful as an alternate, supplemental form of backup. However, the primary backup solution should be a native database system backup, as only native database system backups can be used to fully recover a database system when media failure occurs.