Monday, August 3, 2015

Example to create a Windows Batch script to run DB2 backup commands

Contents of d:\db2_backup.bat

db2cmd /c /w "db2 backup database sampledb online to "d:\backup" include logs without prompting"

And schedule the script using Windows Scheduler.