The following sequence of events shows the typical steps in performing incremental backups and subsequently recovering from a media failure:
- On Friday afternoon perform a standard backup using the following command: 
BACKUP LOCATION MYLOC TO D:\BACKUPLOCS
 
-  On Monday afternoon perform an incremental backup using the following command: 
BACKUP LOCATION MYLOC TO D:\BACKUPLOCS INCREMENTAL
This creates directory xdb20051015153015000002, for instance.
 
- On Tuesday afternoon perform an incremental backup using the following command: 
BACKUP LOCATION MYLOC TO D:\BACKUPLOCS INCREMENTAL
This creates directory xdb20051016144416000003, for instance.
 
- On Wednesday morning recover from a media failure using the following steps: 
- Stop the XDB Server.
 
- Copy the contents of the current logs to another directory, such as d:\currlocs.
 
-  Remove the contents of the original XDB location.
 
- Run the xdbdata.bat script in Friday afternoon’s d:\backuplocs subdirectory.
 
- Start the XDB Server in exclusive use mode.
 
- Issue the following ROLLFORWARD commands: 
ROLLFORWARD MYLOC USING D:\BACKUPLOCS\XDB20051015153015000002
ROLLFORWARD MYLOC USING D:\BACKUPLOCS\XDB20051016144416000003
ROLLFORWARD MYLOC USING D:\CURRLOGS
 
- Stop the XDB Server.
 
- Restart the XDB Server for general availability.