Our nightly updates run in the evening and finish around 8am. My boss wants the current log files kept on the server for 2 days, but wants anything created before noon, 2 days prior archived. I was thinking of using touch to set a temporary file with a date of today-2 and a time of noon, then moving anything older to an archive directory. My problem is that I can't find a way to set the date. Any ideas, or a better way to do it?
Here is what I have for anything prior to noon today, but cant get noon of 2 days ago figured out.
sb008, thanks for your idea. The TZ didn't work on the SUSE Linux, but got me to explore in the right area and I found this solution which worked great for me.