db2 list applications for db sampledb2stop force → db2startdb2 backup db sample use tsm,成功返回時間戳。db2 list history backup all for sample 或 db2adutl query 查看記錄。db2 update db cfg for sample using userexit on(用戶出口)db2 update db cfg for sample using logretain on(歸檔日志)db2 update db cfg for sample using trackmod on(增量備份功能)db2 backup db sample online use tsm,返回時間戳。db2adutl 和 db2 list history 查看記錄。db2 backup db sample online incremental use tsm,返回時間戳。db2 backup db sample online incremental delta use tsm。兩者區別類似 Oracle 累積與增量導出:DB2 incremental 對應 Oracle cumulative,delta 對應 Oracle incremental。db2 drop db sampledb2 restore db sample history file use tsm taken at 20030102223107 buffer 100db2ckrst -d sample -t 20030101224424 -r databasedb2 restore db sample incremental use tsm taken at 20030101224424 buffer 100,主節點優先,再其他節點。db2 rollforward db sample to 2003-01-12-13.27.25.000000 on all nodes and stop,統一前滾至同一時間點,在主節點執行。TABLESPACE (tablespace-name) 子句,要求數據庫處於歸檔日志與增量備份模式。db2ckrst 建議順序依次恢復,最後再前滾。