当创建为任务时,从 Ubuntu 到 Synology 的 Rsync 失败

当创建为任务时,从 Ubuntu 到 Synology 的 Rsync 失败

我有一台 Synology,用作我的 Ubuntu 服务器的备份系统。我创建了一个脚本,其中我的 Synology 将通过 ssh 从我的 Ubuntu 服务器 rsync 到其自身。

rsync -avrhv --no-o --no-g --no-perms --delete -e "ssh -p 1433 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" [email protected]:/mnt/raid/0/Movies/ /volume1/Movies

当我在 CLI 中运行该脚本时,它有效。但是当我在 Synology 中将其作为任务添加时,我得到了以下输出。它以与 CLI 中相同的用户身份运行。所以权限应该没问题...

receiving incremental file list
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 4096 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 4096 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
[sender] expand file_list pointer array to 1024 bytes, did not move
rsync: mkdir "/volume1/Movies\#015" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(689) [Receiver=3.1.2]

相关内容