How to take MaxDB backup by command prompt

This blog post will teach you how to take a MaxDB backup using the command prompt. We will cover everything from creating a backup template to starting and checking the status of a backup.

How to take MaxDB backup by command prompt

Step 1 : – Create Template For Full Backup

 Backup Template create with name  “full” with location  : -D:\MaxDB\Backup\data CONTENT  DATA

How to take MaxDB backup by command prompt

 Step 2 Start backup via backup template full: –

dbmcli on DB1> db_connect dbmcli on DB1> backup_start full

How to take MaxDB backup by command prompt

Use DBM command medium_label (in this example for the backup template full) to display the backup information:

How to take MaxDB backup by command prompt

Check the backup history using DBM command backup_history_list:

dbmcli on DB1> backup_history_list -c label,action,pages,stop,media,error

How to take MaxDB backup by command prompt

Log backup configure 

backup_template_create log to FILE D:\MaxDB\Backup_LOG\LOG001 CONTENT LOG

How to take MaxDB backup by command prompt

backup_start log

Now you schedule this backup on task scheduler in windows and in Linux use crone to schedule job.

issue:  If you execute full backup and data file already exist on this location. So in this case you have two option

1> move backup to other location daily

2> create multiple template for full backup on daily basis.

How to take MaxDB backup by command prompt

Leave a Comment