[oraadmin@sgwmsdbsprd03 ~]$ fpsync -v -n 8 -o "-lptgoD -v --numeric-ids -e ssh -p 222" /app/test/ [email protected]:/app/testing
1661915613 Info: Run ID: 1661915613-41320
1661915613 ===> Analyzing filesystem...
1661915614 <=== Fpart crawling finished
1661915615 <=== Parts done: 1/1 (100%), remaining: 0
1661915615 <=== Time elapsed: 2s, remaining: ~0s (~2s/job)
1661915615 <=== Fpsync completed with errors in 2s, see logs:
/tmp/fpsync/log/1661915613-41320/1.stderr
这是输出/tmp/fpsync/log/1661915613-41320/1.stderr
Use "rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
See http://rsync.samba.org/ for updates, bug reports, and answers
rsync error: syntax or usage error (code 1) at options.c(2354) [client=3.1.3]
我的命令有什么问题吗?
答案1
从选项列表中删除,
-lptgoD -v
因为它已包含在rsync -av
生成的默认命令中fpsync
。您尚未引用 的参数,因此这些参数将作为四个单独的单词而不是两个单词
-e ssh -p 222
直接传递。rsync
要么设置一个 ssh 配置条目以自动为目标主机使用端口 222,要么尝试在已经用双引号引起来的选项列表中用~/.ssh/config
单引号引用字符串: 。-e 'ssh -p 222' ...
rsync