Transfer data using rsync Copy a file from local server to remote one: rsync -v -e ssh /home/localuser/testfile.txt the above example we will copy a file called testfile.txt from the current server to the remote one and will place it inside the folder /home/remoteuser/transfer. Instead an IP address a hostname can be used as well.If the connection is successful then you should not experience problems initiating the transfer.Depending on the SSH authentication method configured on the server you might be prompted to fill in SSH password or key passphrase upon execution of the rsync command. ssh X.X.X.X is the remote server's IP address. Install RsyncIf the command is not included by default inside the server configuration we can easily add it using the default package manager: CentOS: sudo yum install rsync Debian/Ubuntu: sudo apt-get install rsyncĬheck SSH configurationIn order to make sure that you will be able to transfer files from/to the remote server using rsync over SSH you can first try to establish an SSH connection. It also provides large amount of options which can be used such as archive mode, backup mode, data compression during the transfer etc. The command can be used over SSH which encrypts the connection. What is it Rsync?Rsync is a special tool that allows you to transfer and synchronize data between servers (in local system too). In this howto we will cover the steps needed to copy files with rsync over SSH in Debian, CentOS or Ubuntu Linux platform.
0 Comments
Leave a Reply. |