[UFO Chicago] very newbie 'nix question
Nick Moffitt
nick@zork.net
Sat, 26 Jan 2002 16:42:26 -0800
begin Elliot Shank quotation:
> On a related note is one of my beefs with using "cp -R" on directories
> when some of the target directories already exist. cp just barfs in
> such a case and gives up. My usual workaround in such a case is to
>
> cd sourcedir
> tar cf - . | ( cd destinationdir && tar xvf - )
rsync -a sourcedir destionationdir
Want to obliterate anything already in destinationdir? just
add a --delete switch.
--
INFORMATION GLADLY GIVEN BUT SAFETY REQUIRES AVOIDING UNNECESSARY CONVERSATION
01234567 <- The amazing* indent-o-meter!
^ (*: Indent-o-meter may not actually amaze.)