did you try
tar -cvbf 20 /dev/st0 ./home ./var ./etc
you can specify multiple directories on the same line
Jason
>
> Dear all,
>
> How to use tar command to backup few directories with one
> command line...
>
> I did tried to use the following to backup,
>
> tar cvbf 20 /dev/st0 ./home
> tar cvbf 20 /dev/st0 ./var
> tar cvbf 20 /dev/st0 ./etc
>
> but when I tried to restore the tape with
>
> tar xvbf 20 /dev/st0
>
> I only got the last backup for /etc
>
> I also do tried as below to backup...
>
> tar cvbf 20 /dev/nst0 ./home
> tar cvbf 20 /dev/nst0 ./var
> tar cvbf 20 /dev/st0 ./etc
>
> but also get the same thing?
>
> anyone know about this, please help to advise...
>
> My main purpose is just to backup those 3 directories and
> make sure the
> backup and restore work properly...
>
> many thanks.....
>
> best rdgs,
> gary
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list