log rotate in /home/aras/opt on nebka
Would it be possible to archive log files by appending the archive date before filing instead of using log rotate? If the date is appended, the file never changes again and I can rsync the directory easily. If the files are archived with log rotate, over 3000 files in /home/aras/opt/oldlog get renamed and rsync has to copy every file each time.
i've modified /home/aras/etc/logrotate.conf to do that, by adding "dateext" command to each section. Will have to check if it worked correctly tomorrow. -ivan On Tue, Dec 6, 2011 at 7:12 PM, Dan Hayes <dhayes501@gmail.com> wrote:
Would it be possible to archive log files by appending the archive date before filing instead of using log rotate? If the date is appended, the file never changes again and I can rsync the directory easily. If the files are archived with log rotate, over 3000 files in /home/aras/opt/oldlog get renamed and rsync has to copy every file each time.
_______________________________________________ RAS-run mailing list RAS-run@lists.openlib.org http://lists.openlib.org/cgi-bin/mailman/listinfo/ras-run
participants (2)
-
Dan Hayes -
Ivan Kurmanov