Hi folks,
Today I would like to provide two methods for copying files from one server to another. You can use this for synchronizing your scripts or some ARS folders between servers. The first method is SFTP (Secure FTP). You can type the following to connect to a server:
sftp <server_name>
Then you need to change to the correct directory on remote folder:
cd <directory_name>
Finally you can copy the file from local to remote via "put" or from remote to local via "get":
get <file_name>
put <file_name>
You can use wild cards like in Unix environment:
get *.log
The disadvantage of sftp is that directories can not be copied easily. As a second method for copying files and directories, you can use "scp" command:
scp -r <user_name>@<server_name>:<full_path_to_the_file_or_directory> <destination_folder>
No comments:
Post a Comment