From: <al...@ba...> - 2004-01-24 18:45:21
|
Hi folks. I made some modifications to flexbackup 0.9.8, which Edwin was kind enough to incorporate some of. I would like to see if I can contribute some code to flexbackup to support all the things I have hacked together for my use, so that I can then use the mainline version. It seems to me that the idea of the "prune" hash is very clever: it allows excluding directories on a filesystem by filesystem basis. Could that concept be extended to any find argument? So something like $findargs{'myserver:/'} = ' -regex "\./var/\(log\|named\|lib\).* -o -path "./usr/local* -o -path "./etc*" '; and then that arg would be appended to the find arguments (whether before or after the -prune I am not sure, or with -a or -o or what) for that filesystem. As a separate contrib project, I could then write a "compiler", which would take a config file that basically specifies find arguments, only with greater readability and interspersed comments, and converts it into a file that could be require'd in flexbackup.conf. What I have now looks like this: FILESYSTEM diego:/ # all we are keeping is a few things in /var and /usr/local "(" -regex "\./var/\(log\|named\|lib\).*" -o -path "./usr/local*" -o -path "./etc*" ")" Let me know if this seems like a useful contribution, if so please add alex_aminoff as a developer on sourceforge and I will submit my changes thru CVS. - Alex |