大网数据广告活动
服务器运维问答

Confused about rsync, port 873 and NAS

· 52CE 我爱测

I am trying to set up a backup from my NAS (QNAP TS-469 Pro) to my PC running Ubuntu 16.10, using the "Backup Station" offered by the NAS. If I ssh to the NAS and run the following commands, the rsync works: touch file.txt # Crea…

问题原文

原帖链接 · anderstood · CC BY-SA 3.0

I am trying to set up a backup from my NAS (QNAP TS-469 Pro) to my PC running Ubuntu 16.10, using the "Backup Station" offered by the NAS.

If I ssh to the NAS and run the following commands, the rsync works:

touch file.txt                             # Create "file.txt" on the QNAP 
rsync file.txt username@ipaddress:~        # Backup "file.txt" on the backup PC

However, when setting up a backup from the GUI of the NAS (in a browser), I get the error

Invalid port number or the service is disabled.

I read some things about port 873 or running a rsync daemon, but all this is very unclear for me.

Why does running rsync manually works, while I get an error with the "Backup Station"? Of course in the end, I am interested in making the automatic backup work.

已采纳解答

原帖链接 · shodanshok · CC BY-SA 4.0

Rsync can work in two different modes:

  • via SSH: Rsync connection (both for control and data transfer) inside an SSH tunnel (basically using pipes). Due to the ubiquity of SSH access, and its security, this is often the preferred approach. However, to be truly transparent and automated (with no password required), you had to setup RSA authentication. Moreover, as all the data is encrypted by SSH, it can be slower than the other approach;
  • via daemon (or service) mode: On the remote system, Rsync runs as a daemon/service, listening on port TCP 873. This mode has no build-in encryption and so it is both faster and less secure than the SSH tunnel. It is the mode used by QNAP for local and remote backups. To let QNAP use your PC as its backup target (ie: backup the NAS on the PC), you need to enable the Rsync service on your PC. While not difficult, it surely is more complex than a simple SSH tunnel. You can find more information on the net, for example here.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。