tar directory tree -- permissions wrong

From: <Russ_Fish_at_idx.com>
Date: Mon, 11 Feb 2002 12:00:25 -0800

Hi all--

I am missing something obvious, but a search of the archives doesn't reveal
a solution. I'm trying to copy a directory tree from one place to another
using (as root):

cd /my/source/dir; tar cvf - .| (cd /my/dest/dir; tar xpf -)

File permissions are coming across fine, but all directories in the
destination tree are owned by root. The owner owns the "dest" directory in
the example, and can create a directory in /my/dest/dir with mkdir.

All suggestions greatly appreciated.

--Russ
Received on Mon Feb 11 2002 - 20:00:57 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT