Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3554  / 1 Year ago, mon, january 16, 2023, 12:56:51

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.


More From » sync

 Answers
1

I solved this by running dos2unix in Windows on all the script files. You can also do this in Linux.


[#29731] Tuesday, January 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;