尝试从我的 raspberry-pi 中提取一些 mkv 文件,但 rsync 似乎不起作用,而相同的远程路径使用 scp 可以正常工作。有人能告诉我哪里出了问题吗?
同步
vinicius@Inspiron-5537:/media/vinicius/C8A0CA48A0CA3CA6$ rsync --protect-args -aP "user@server:/var/lib/transmission-daemon/downloads/Treze\ Dias\ Longe\ do\ Sol\ 2017\ -\ Minissérie\ \(720p\)\ WWW.LAPUMiAFiLMES.COM" .
receiving incremental file list
rsync: link_stat "/var/lib/transmission-daemon/downloads/Treze\ Dias\ Longe\ do\ Sol\ 2017\ -\ Minissérie\ \(720p\)\ WWW.LAPUMiAFiLMES.COM" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [Receiver=3.1.1]
rsync: [Receiver] write error: Broken pipe (32)
vinicius@Inspiron-5537:/media/vinicius/C8A0CA48A0CA3CA6$
SCP
vinicius@Inspiron-5537:/media/vinicius/C8A0CA48A0CA3CA6$ scp "user@server:/var/lib/transmission-daemon/downloads/Treze\ Dias\ Longe\ do\ Sol\ 2017\ -\ Minissérie\ \(720p\)\ WWW.LAPUMiAFiLMES.COM/*.mkv" .
Treze.Dias.Longe.do.Sol.2017.S01E01.720p.WEBRip.x264.NACIONAL-WWW.LAPUMiAFiLMES.COM.mkv 1% 13MB 1.7MB/s 09:24 ETA
答案1
按照定义,scp 使用 ssh,但rsync
实际上并非如此。您必须告诉 rsync 使用 ssh --rsh=ssh
。例如
rsync -av --rsh=ssh user@server:/file /filex
有关详细信息,请参阅 man rsync
。