cancel
Showing results for 
Search instead for 
Did you mean: 

Overwrite a file using dbmcli command

Former Member
0 Kudos

Hi  Experts,

                        I have create a backup medium using dbmcli command :

dbmcli SIT>medium_put DATA /backup_disk/SIT/DAT0001 FILE DATA

dbmcli SIT>backup_start DATA

I am able to take backup successfully.

I would like to know the command which overwrite the already existed  backup file.

Please help..

Thanks

Srikanth

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello Srikanth,

It is not recommended to overwrite existing backup without archiving or moving it to a safe location.

However, In order to overwrite the existing backup - you need to specify this option while you create the medium deifinition using medium_put command



<overwrite>


Mandatory only for the backup type FILE and only for
data backups. It defines the behavior if the file already exists.


Possible values are: YES | NO


If you enter YES and the file
already exists, it is overwritten by the new backup.


If you enter NO and the file
already exists, the backup fails.


The system default is NO.


This entry is not interpreted for log backups.

For more information use DBM command explain:

dbmcli on SIT> explain medium_put

or see MaxDB documentation (Version 7.6) or MaxDB documentation (Version 7.7) or

MaxDB documentation (Version 7.8)

Regards,

Yashwanth