![rsync指定端口](https://i-blog.csdnimg.cn/blog_migrate/63b7b395937f689299a8758742ff218e.png)
rsync指定端口
We have been attempting to use rysnc
on remote system to backup. But we get network related error. This means we need to enable access to the remote system. But the problem do not solved with this step. Here is the solutions.
我们一直在尝试在远程系统上使用rysnc
进行备份。 但是我们得到与网络有关的错误。 这意味着我们需要启用对远程系统的访问。 但是这个步骤不能解决问题。 这是解决方案。
默认Rsync端口 (Default Rsync Port)
Rsync works as a daemon and listen for TCP network port. The default port configuration provided by Rsync daemon is TCP 873
.
Rsync充当守护程序并侦听TCP网络端口。 Rsync守护程序提供的默认端口配置为TCP 873
。
明确指定Rsync端口 (Specify Rsync Port Explicitly)
The first method to change default rsync port is using --port
option with the port number. In this example we will connect remote system port 1234 rsync daemon.
更改默认rsync端口的第一种方法是将--port
选项与端口号一起使用。 在此示例中,我们将连接远程系统端口1234 rsync守护程序。
$ rsync --port=1234 [email protected]:/home /mnt/home
在URL中指定Rsync端口 (Specify Rsync Port In URL)
Another method to psecify different port than default is providing the port number in the connection URL. In this example we will specify the port number as 1234