just a small guide
rm -rf the directory that is going to be used,
mv the tarball to the directory
tar -(j/z)xvf (file name)  // depends on if its tar.gz or tar.bz2
rm the tarball // not necessary

i think that's about it..

On Tue, Oct 19, 2010 at 4:07 PM, KwikOne <[email protected]> wrote:

> First off I would like to say that this group is NOT TO DO IT FOR
> YOU!!
> Next, if someone already has such a script they could (hopefully) post
> it for you.
> Lastly, we can give advice as to what YOU should do. For example:
> Given your basics...
> 1: Delete all files/directories in the destination for the tarball
> 2: extract all files/directories from the tarball to the destination.
>
> How you do it, is up to you. We can only give advice.
>
> On Oct 19, 9:42 am, Ramesh Dash <[email protected]> wrote:
> > Hi
> >
> > i need  to write a customized restore script to restore the disk files
> from
> > a tarball.
> >
> > The script should be like this:
> >
> > It should take two *arguments*; (1) the location of the tarball, and (2)
> the
> > location where to restore the tarball.
> >
> > The *behavior of the script *should be like: it must *restore all the
> > files/directories that are in the tarball* and it should *delete all the
> > other files/directories on the disk which are not *in the tarball.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Computer Tech Support" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<computer-tech-support%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/computer-tech-support?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Computer Tech Support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/computer-tech-support?hl=en.

Reply via email to