Copy directory structure (e.g. apache) from one server to another:
cd /usr/local
tar zcf – apache/ | ssh remote_host “cd /usr/local; mv apache apache.bak; tar zpxvf -”
Copy directory structure (e.g. apache) from one server to another:
cd /usr/local
tar zcf – apache/ | ssh remote_host “cd /usr/local; mv apache apache.bak; tar zpxvf -”