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 [email protected]:/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/ [email protected]:/var/files/ImageSync/
I think you may need a "-e" ahead of ssh:
rsync -av -e ssh /cygdrive/c/users/Owner/Pictures [email protected]:/var/files/ImageSync