[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tar file extract specific



hi ya

On Thu, 9 Jan 2003, Mike Egglestone wrote:

> Hi,
> 
> I have a normal backup tar file of my /home directory.
> Is it possible to extract certain or specific files out of this
> tar file without having to untar the entire file first?

#
# go to some work area where yu know you will not accidentally
# overwrite new files with the older directories/files form backup
#
cd /tmp

tar ztvf /mnt/Backup/foo.backup.tgz etc/passwd home/egglestone/file

when ready to extract those files ... use zxvfp   instead of ztvf

do a diff first o make sure and 
than mv it to /home or where you want it

c ya
alvin



Reply to: