Backing up the DB2 database on the new server
Before restoring your data, back up the new DB2 database on the new server and then drop it. You can roll it back if the side-by-side migration fails.
About this task
Use the BACKUP DATABASE command to take a copy of the database data and store it on a different medium. You can back up an entire database, database partition, or only selected table spaces. The database can be local or remote. The backup image remains on the database server, unless you are using a storage management product such as Tivoli Storage Manager (TSM) or DB2 Advanced Copy Services (ACS).
Use the RESTORE DATABASE command to recover a database
or table space. If you have backed up your database or individual
table spaces, you can recreate them if they become damaged or corrupted.
The database can be local or remote. When restoring to an existing
database, do not be connected to the database that is to be restored
since the restore utility automatically establishes a connection to
the specified database, and this connection is terminated at the completion
of the restoring operation.
Note: We use DB2 10.5 as an example. For
other versions, see the DB2 online product documentation.