简体   繁体   English

Windows到Linux(Rsync和SSH)

[英]Windows to Linux (Rsync and SSH)

I'm new to rsync, so my problem is probably obvious. 我是rsync的新手,所以我的问题可能很明显。

I'm trying to backup the folders in Windows Pictures to a remote Linux directory. 我正在尝试将Windows Pictures中的文件夹备份到远程Linux目录。

This is what I have: 这就是我所拥有的:

rsync -av ssh /cygdrive/c/users/Owner/Pictures blah@192.168.1.10:/var/files/ImageSync

I got this format from: Transferring from Windows to Linux with rsync 我从以下格式获得此格式: 使用rsync从Windows转移到Linux

But I am getting this error: 但我收到此错误:

rsync: link_stat "/home/Owner/ssh" failed: No such file or directory (2) rsync: change_dir "/cygdrive/c/users/Owner/Pictures" failed: No such file or directory (2) sent 20 bytes received 12 bytes 64.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]

I have an ssh key pair already linked up, so there is no need for a password... Unless I did something wrong and that's why I am having issues. 我已经连接了一个ssh密钥对,因此不需要密码...除非我做错了事,这就是我遇到问题的原因。

Thanks! 谢谢!

Note: Had to manually open cygdrive through cd and ls. 注意:必须通过cd和ls手动打开cygdrive。 It works! 有用! rsync -av -e ssh /cygdrive/c/Users/Owner/Pictures/ blahc@192.168.1.10:/var/files/ImageSync/

我认为您可能需要在ssh之前加一个“ -e”:

rsync -av -e ssh /cygdrive/c/users/Owner/Pictures blah@192.168.1.10:/var/files/ImageSync

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM