I need to rewrite this code from the ground up really. It was written to fill a gap which existing at a time when I was writing a backup script. Hopefully this will happen sooner rather than later. Any help, patches, rewrites and/or suggestions will be greatly accepted.