Backup and entire dir using tar?

Le grand pinguin rm at mh-freiburg.de
Thu Jan 20 10:37:36 UTC 2005


On Thu, Jan 20, 2005 at 07:42:29AM +0100, Martin Schmitz wrote:
> Bob Nielsen wrote:
> >> to create:
> >>   tar -cvf backup.tar   directory_to_backup
> >> 
> >> to extract:
> >>  tar -xvf backup.tar
> > 
> > The question was about tar.gz, so that would change to
> > 
> >  to create:
> >    tar -cvzf backup.tar.gz   directory_to_backup
> > 
> >  to extract:
> >   tar -xvzf backup.tar.gz
> 
> Why the hell everybody suggests 'v' with tar. In my opinion it's almost
> always a very bad idea. If there are error messages you won't see them!

We aren't from hell :-/
Why do you think it prevents us from seeing errors?
 
 $ tar cvzf blub.tar.gz /etc 2>&1 | less

I don't think i loose a single error that way. BTW, i would'nt use it:

 - in a shell script (esp. in a script supposed to be run by cron).
 - over a slow network connection :-)

 RalfD

> Martin
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list