Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

cleaning up log files in $(DIR_INSTANCE)/backup/log


There has ben huge number of logs that are getting generated under $(DIR_INSTANCE)/backup/log directory. Is there a way to dlete this automatically after some days ?

Like script or parmater in HANA studio ?

I know the below

"Each time the log backup job runs, a log segment snapshot or series of files are created in the $(DIR_INSTANCE)/backup/log directory. During the log file backup processes, new files are created each time the job runs. The existing files are not automatically deleted or overwritten. In short, the files will grow indefinitely until they are deleted by the SAP HANA DBA"

Script:

find /usr/sap/../../backup/log/* -mtime +5 -exec rm {} \;

I am looking for somekind of parmater in HANA . Is it possible?

Regards,

Pavan Gunda

Former Member
Not what you were looking for? View more on this topic or Ask a question