This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17598|Reply: 6

[linux] CentOS 7 copies files to another server via commands

[Copy link]
Posted on 7/28/2021 4:15:07 PM | | | |
Copy files or folders from one Linux system to another Linux server via the scp command

Copy the file:

(1) Copy local files to the remote

scp file name username @ computer IP or computer name: remote path


(2) Copy files back to the local area remotely

scp username@computer IP or computer name: filename local path


Copy folder (directory):

(1) Copy the local folder to the remote location

scp -r directory name username @computer IP or computer name: remote path



(2) Copy the folder back to the local area remotely

scp -r username@computer IP or computer name: directory name local path


(End)





Previous:Linux modifications mount to the new /date directory
Next:Spring Cloud Gateway CORS cross-domain configuration
Posted on 7/29/2021 9:25:18 AM |
No permission is required
 Landlord| Posted on 7/29/2021 9:26:43 AM |
gaomanxiang posted on 2021-7-29 09:25
No permission is required

Yes, you can see in the screenshot, prompting you to enter the password
 Landlord| Posted on 12/10/2022 11:36:06 AM |
Linux Secretless Login (ssh) or Secretless Copy (scp) files to other servers
https://www.itsvse.com/thread-10258-1-1.html
 Landlord| Posted on 1/13/2025 10:30:38 AM |
To copy all files on the current server that start with test to the /data folder of the remote server abc, you can use the scp command.

 Landlord| Posted on 4/2/2025 11:23:59 AM |
Copy the remote server's /data/wwwroot folder (the file containing all subdirectories, where -P is the remote server's SSH port number) to the local /data/wwwroot command:

 Landlord| Posted on 8/4/2025 8:54:31 AM |
Linux uses rsync to synchronize data to the new server
https://www.itsvse.com/thread-11045-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com