cancel
Showing results for 
Search instead for 
Did you mean: 

Log backup purging script required for MaxDB content server (DMS)

0 Kudos

Hi,

We are taking daily backup and purging the old backup of content server with the below script by scheduling the task .

@echo off

mv F:\backup\<DB>_COM F:\backup\<DB>_COM.old

dbmcli -d <DB>-u control,control -c -i db_backup.txt -t db_backuplog.log

@echo off

As we have also turned on automatic log backup, we need a script to purge logs older than 15 days to avoid running out of disk space issues.

Please suggest script for the same.

OS :  Windows 2008 R2

Thanks,

Harsh

Accepted Solutions (0)

Answers (1)

Answers (1)

antonio_bossini
Explorer
0 Kudos

Hi,

I'm using something like this:

forfiles /P F:\Backup\bcksdblog /D -15 /C "cmd /c del @path"

Regards

Antonio