Re: tar
Hi,
You will need tar -X.
You can also try something like this:
find /home -type d ! -name shao -mindepth 1 -maxdepth 1 | xargs tar cvf home.tar
which will tar all the dirs in /home except the dir /home/shao.
Hope this helps.
Shao.
zdrysdal@diagnostic.co.nz [zdrysdal@diagnostic.co.nz] wrote:
> Hi
>
> what is needed in order to tell tar not to include specific
> files/directories? i am intending to copy the /home directory off of one
> server and onto another but i do not want to copy everything in /home.
>
> thanx
>
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
--
____________________________________________________________________________
Shao Zhang - Running Debian 2.1 ___ _ _____
Department of Communications / __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _
University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` |
Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au |___/
_____________________________________________________________________________
Reply to:
- References:
- tar
- From: zdrysdal@diagnostic.co.nz