Search the Community
Showing results for tags 'Log file management'.
Found 1 result
I've been pondering this one a few hours, and there has to be an easier way to do it. Here's what has to be done: Let's say directory "A" has database log (like binary log) files. Directory "B" is my backup directory. I want to copy anything that is in A to B. Pretty easy with: FileCopy($s_DBFolder & "\*.log", $s_HourlyFolder, 0) ... but then I want to maintain X days of log files past the oldest file in "A" in "B" for emergencies. I thought about things like creating an array with FileFindNextFile and all sorts of horrible solutions, but there are potentially thousands of files and there has to be a better way. Any ideas on the best way to attack this?