Backing up with tar over ssh

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 -“

Advertisements

Comments are closed.

%d bloggers like this: