There are two ways to do this, but ssh method is most preferable
scp -r sourcedir/ user@dest.com:/dest/dir/
or
rsync -auv -e ssh --progress sourcedir/ user@dest.com:/dest/dir/
Example:
scp -r /var/www/mydata root@172.16.10.5:/var/www/
rsync -auv -e ssh --progress /var/www/mydata root@172.16.10.5:/var/www/
scp -r sourcedir/ user@dest.com:/dest/dir/
or
rsync -auv -e ssh --progress sourcedir/ user@dest.com:/dest/dir/
Example:
scp -r /var/www/mydata root@172.16.10.5:/var/www/
rsync -auv -e ssh --progress /var/www/mydata root@172.16.10.5:/var/www/
No comments:
Post a Comment