>> tar cf - $old_dir | ( cd $new_dir: tar xf - ) >> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )" > ^ > The ':' separating commands should be a ';'. Using the -C option would be > a little easier, but your method also would work for star. This piping > through ssh is quite cool, isn't it.
whoops, good catch! > If $old_dir is the root partition, I would bin-mount it first to somewhere > else, so other directories mounted to it (especially/dev, /proc and /sys) > are not copied: > mount -o bind / /mnt > old_dir=/mnt that too, copying over /proc/kcore is never fun ;P -- Kyle