This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm using rsync to sync a folder between a Windows PC with Cygwin (source) and a Linux PC (destination). When I run the following command on the console it runs fine, but if I run the same command in a bash script, it creates a no-name folder inside the folder that I want to copy:
rsync /cygdrive/c/directory/ -av -e ssh remote_user@remote_computer:/media/directory/
Result:
/media/directory/[no-name]/file1.mkv
/media/directory/[no-name]/file2.mkv
/media/directory/[no-name]/file3.mkv
Solution: In my case, the cause was creating a bash script on Windows. So the below command will correct the script:
sed -i 's/\r//' script
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/linuxquesti...