On Tue, 2002-12-17 at 11:35, Bret Hughes wrote: > On Tue, 2002-12-17 at 09:19, Johnathan Bailes wrote: > > My company does not want to pay the license fees for client installs of > > the backup software on all our boxes. > > > > Many of the apps it was noted reside on the nas server and are remotely > > mounted. Therefore, the decision came down to only back up certain > > files in /etc to provide for an easier re-install. > > > > I got ideas of course -- passwd, shadow, nsswitch.conf, exports etc... > > > > However, anybody got any more complete ideas on what should and should > > NOT be backed up. > > > > > > I wrote a perl script that ids files that are not contianed in an rpm > package or that fail the rpm -v test. point it to a dir, redirect the > output to a file and you have a list of all files in the tree that can > be edited to create a backup file list. I have used it on three > upgrades that involved reformating or drive replacements and it saved my > bacon on several occations. > > I have placed the script at: > > http://www.elevating.com/bret/fcf.pl > > Take a look at it and let me know what you think. Works for me. It > does take a while and will work the harddrive pretty well obviously. > > HTH
I have a half-baked idea that I will throw out there to see if anyone picks it up.... Would it be possible to have a standard Linux file system flag (at least for ext2 and ext3, maybe reiser would pick it up too?) that would indicate if a file had been installed via a package and never modified. Call the flag the "nobackup" flag? For example, when "rpm" or "apt" or "yast" was installing a file it would set this file system flag, and the VFS layer would always unset this file if it was modifying anything other than the atime of the file? This way finding modified package owned files, or non-package owned files would be very simple for backup software, or rsync jobs. Also, one could run a script to mark files prior to backup runtime, something like "find / -type f -name "*.dbf" -exec chattr +notape {}\;" -Ben. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list