![]() In the following example, we will only copy text files with the “ *.txt” extension. Simply the * asterisk or glob operation can be used to specify the name part and an extension can be added. We can specify the extension of the files we want to copy from local to remote. The scp command is very handy for the copy operation. scp -r /home/ismail/ :/mnt/backup/ Copy From Local To Remote Specific File Extensions In order to use the hostname or domain name, it should be resolved into the IP address of the remote system properly. scp -r /home/ismail/ 192.168.1.10:/mnt/backup/Īlternatively, we can specify the remote system with a hostname or domain name like below. In the following example we will copy the /home/ismail/ directory and all its contents to the remote server 192.168.1.10. The -r option is specified to the scp command for recursive copy. Multiple files and directories can be copied from local to the remote recursively. In most of the cases the scp command is used to copy more than single file or directory. scp myfile.txt :/home/ismail/myfile.txt Copy From Local To Remote Directory Recursively ![]() In the following example, we will only copy text files with the. Simply the asteris k or glob operation can be used to specify the name part and an extension can be added. scp myfile.txt 192.168.1.10:/home/ismail/myfile.txtĪlternatively, we can specify the remote system with a hostname or domain name like below. We can specify the extension of the files we want to copy from local to remote. In the following example, we will copy the file named myfile.txt into the remote system with the IP address 192.168.1.10. The most basic usage scenario to copy from local to the remote with the scp command is copying a single file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |