Monday, January 3, 2011

Fater copy accross unix/ Linux servers

While doing a clone or other activies you all use a tar+scp+untar.
You can get it done in one command and much fater:
tar cvf - >source< | ssh user@server "cd >destination<; tar xvf -"

where:
>source< is the directory/ file to be scp'ed
>destination< is the directory/ path on the destination server where contents are to be copied

No comments:

Post a Comment