How do I copy a directory from one server to another in Ubuntu?

How do I copy a directory from one server to another in Ubuntu?
Answer
On server A:
$ scp -r /path/to/directory
[email protected]
:/path/to/files/
. The above command will copy the files from serverA to serverB using someuser (a user on serverB). The directory ( /path/to/directory ) will be copied as a directory to the directory on serverB into the directory /path/to/files/ .
 

Tìm kiếm

Back
Top