- Somanyfish
- Posts: 3
- Starts: 3
- Wiki Edits: 0
I've been doing some reading about the best way to run an app in production. It looks like rotating out logs is a good idea but there are a lot of opinions about the best way to do it. I can't find anyone who recommends a simple cron job, though. Am I missing something obvious about why this isn't smart?
I'm picturing having 4 backup folders: backup_log/1, backup_log/2, backup_log/3, backup_log/4. My script would move 1 -> 2, 2 ->3 and 3 -> 4. Then, it'd copy the production log to 1 and erase it in its original location.
Any ideas why this won't work?
2008-05-06 07:41 AM