简体   繁体   中英

Windows to Linux (Rsync and SSH)

I'm new to rsync, so my problem is probably obvious.

I'm trying to backup the folders in Windows Pictures to a remote Linux directory.

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

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.

Thanks!

Note: Had to manually open cygdrive through cd and ls. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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