Wed Jul 1 11:57:20 CEST 2009


Problem: rotating logs for apache are a _working_ storage mechanism.
I'm keeping 52 weeks worth of logs:

# cat /etc/logrotate.d/apache2
/var/log/apache2/*.log {
	rotate 52

The problem however is that with incremental rsync clone based
backups, these get re-transferred.  A simple way to fix this is to
hash them, and store the hashed files in a subdirectory.  This way
only links get rotated.

Ok. Got 2 scripts: