[<<][pool][>>][..]
Wed Jul 1 11:57:20 CEST 2009

md5-ify

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:

md5-dir-encode
md5-dir-decode



[Reply][About]
[<<][pool][>>][..]