![]() Sent 104 bytes received 3.49M bytes 997.68K bytes/sec Here in this example, a directory /root/rpmpkgs which is on a remote server is being copied into your local computer in /tmp/myrpms. ![]() This command will help you sync a remote directory to a local directory. Copy a Directory from Remote to Local Server ![]() Sent 3.74M bytes received 96 bytes 439.88K bytes/sec Warning: Permanently added '192.168.0.141' (ED25519) to the list of known hosts. The authenticity of host '192.168.0.141 (192.168.0.141)' can't be established.ĮD25519 key fingerprint is SHA256:bH2tiWQn4S5o6qmZhmtXcBROV5TU5H4t2C42QDEMx1c.Īre you sure you want to continue connecting (yes/no/)? yes To copy a directory from a local server to a remote server, you can use the following command, which will sync a directory from a local to a remote machine.įor example, if there is a folder in your local computer “ rpmpkgs” that contains some RPM packages and if you want that local directory’s content sends to a remote server, you can use the following command. Copy a Directory from Local to Remote Server Sent 3.47M bytes received 96 bytes 2.32M bytes/sec Here in this example, /root/rpmpkgs contains some rpm package files and you want that directory to be copied inside /tmp/backups/ folder. The following command will transfer or sync all the files from one directory to a different directory in the same machine. In the above example, you can see that if the destination is not already existed rsync will create a directory automatically for the destination. Sent 224.54K bytes received 70 bytes 449.21K bytes/sec Here in this example, a file name backup.tar needs to be copied or synced to /tmp/backups/ folder. To copy or sync a file locally, you can use the following command that will sync a single file on a local machine from one location to another location. We can install the rsync package with the help of the following package manager as per your Linux distribution. The rsync command follows the following syntax: # rsync SOURCE DESTINATION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |