-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Kramer wrote:
>I wrote a perl script that starts out with a regexp of files/directories >to always include (like my apache DocumentRoot) and a regexp of >files/directories to always exclude (like /proc). It then does a "find / >-type f", applying the include/exclude rules. Then I do: > if($Source !~ /$ExcludeDirs/ && > $Source !~ /$ExcludeFiles/ && > -T $Source && > $Size < 10000 ) > { > Debug("$Source\n\tNormal file, Size ($Size) and type OK"); > DoBackup(); > } > >Now here's the fun part: >DoBackup() just creates a symbolic link, which takes up no hard drive >space, from the file to be backed up to an identical spot under a build >directory. When I've done all that, I use mkisofs (which follows the >symlinks) to build an ISO I can burn on CD, or just mount -o loop. Gee, it makes 'tar zcf etc.tgz /etc' (the "splat method") look downright crude ... :-} - -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp - -- http://setiathome.ssl.berkeley.edu/pale_blue_dot.html -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.75-6 iQA/AwUBPH0zIL9BpdPKTBGtEQLY3QCgjylaigsqPwgir7vC3NWRvsDNuI8An18l TRCqqtUSET2EZNv/yqiLAmsI =8TuD -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list