Skip to content

Instantly share code, notes, and snippets.

@ayoubjamouhi
Created May 6, 2022 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayoubjamouhi/aa9316a5c8918703324f51a684a996c7 to your computer and use it in GitHub Desktop.
Save ayoubjamouhi/aa9316a5c8918703324f51a684a996c7 to your computer and use it in GitHub Desktop.
On server A:
$ scp -r /path/to/directory someuser@serverB:/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/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment