DB2 temporarily prevent log files from being written to the archive log dir?
0
votes
0
answers
54
views
DB2 11.5.7.0 on Linux
We've got a cron job that does:
cd ${ARCH_LOC}
tar -czvf /path/to-backups/${DB}_ARCHIVELOG_${NOW}.tar.gz S*.LOG && rm -vf S*.LOG >> ${SLOG}
ISTM that there's a flaw her, since any archived log files written to $ARCH_LOC while the
tar
is running will get rm
ed but not saved.
Thus, is there any way to suspend the **archiving** of log files, and then resume it after the tar ... && rm
completes?
Asked by RonJohn
(694 rep)
Oct 8, 2024, 04:00 PM