Saturday, December 20, 2014

Copy file from one server to another

#!/bin/sh
# copying files using ssh
#
for  i in file1 file2 file3
do
ssh =l john@sama.expanor.local "tar cf - $i" | tar - xvf -
done

No comments:

Post a Comment