I have a virtual ubuntu server running on my windows server. This server has 2 external hdd's attached, which are mounted in ubuntu.
Now I try to run rsync to sync a directory on my desktop and my windows server.
I do this as follows:
rsync -av --update [email protected]:/home/seagate/Syncfolder/Pictures/ /syncs/pictures
The /syncs/pictures
is a symlink to /cygdrive/c/../pictures
. All these symlinks work correctly, and the remote directory exists too.
Now when I run that rsync command above it does this:
created directory /syncs/pictures#015
This actually creates a directory named "pictures" in my /syncs/ folder. So not in the symlink. Next to the symlink:
$ ls
pictures pictures?
When I add a trailing slash to the destination:
rsync -av --update [email protected]:/home/seagate/Syncfolder/Pictures/ /syncs/pictures/
It creates a directory named "#015" (the weird dot) inside my actual Pictures folder on my tower!
I think it has something to do with encoding?
I wrote all the bash scripts in notepad++ with encoding to ANSI.