Starting backups in a nonpartitioned database environment

The following examples show how you can start DB2® database or table space backups from the command line by using DB2 CLP.

To start a DB2 backup or restore with Data Protection for SAP for DB2, log on as user db2SID or SIDadm. In the following examples, the variable shared library represents the full path of the Data Protection for SAP shared library (UNIX™ and Linux™) or DLL (Windows™). DB2 database and table space backups are run as follows:
  • Full online backup (database parameter LOGRETAIN must be activated):
    db2 backup db dbname online load shared library
  • Online table space backup (database parameter LOGRETAIN must be activated):
    db2 backup db dbname online tablespace (tablespace_name#1, ...)
             load shared library