[rescue] Doh!

Walter Belgers walter+rescue at belgers.com
Wed Oct 9 03:36:20 CDT 2002


Dave McGuire wrote:
> 
>    You really want to use a tar pipeline for stuff like that 
> anyway...much safer than cp.
> 
> # cd <src>
> # tar -cf - . | (cd /<dest>; tar -xvBpf -)

You really really want a cpio.

# cd <src>
# find . -depth | cpio -pdmV <dest>

Tar may have problems with devices, named pipes etc.

Cheers,
Walter.
-- 
Walter Belgers         "Si hoc signum legere potes, operis boni in rebus
walter at belgers.com       Latinis alacribus et fructuosis potiri potes!" 



More information about the rescue mailing list