copy between server with SCP in ubuntu server :
copy between server with SCP in ubuntu server :
example,
1. from server1 (192.168.2.132) in folder /etc/ want sent to server 2 (192.168.10.10) in folder /DATA/home/home/
so you can user this sample scripts with default port ssh
scp -r root@192.168.2.132:/etc/ /DATA/home/home/
2. From server1 (192.168.2.132) in folder /DATA/file-ft/www/ want sent to server 2 (192.168.10.10) in folder /var/
scp -r /DATA/file-ft/www/ root@192.168.10.10:/var/
:: remember : to copy with folder must add -r
thank,
copy righ by antok
0 comments:
Posting Komentar