>>>>> "Phil" == Phil Risby <[EMAIL PROTECTED]> writes:

  Phil> Hi Folks
  Phil> A quicky for some expert here.
  Phil> I want to backup all those files I have added to the system since my
  Phil> install
  Phil> and put  them on another drive .
  Phil> I have been doing backups but now I have another drive I thought I
  Phil> would put it to good use.
  Phil> So if I mount my RH5.0 CDROM what is the best way to find all the
  Phil> files on the system which are not  on the CDROM and tar them up to
  Phil> this other drive?

You could use something like...

rpm -ql $(rpm -qa) | sort >/tmp/rpm-controlled-files
find / -print      | sort >/tmp/all-files
comm -3 /tmp/rpm-controlled-files /tmp/all-files >/tmp/uncontrolled-files

...to get the list of files and directories to back up.

But that will mean that your contrib'ed RPM-controlled files won't get
backed up.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to