0

I have 2 Upload folders on server 192..168.2.3 192.168.2.4, both servers are running windows 2008r2. I want to sync the Upload folder of server 192.168.2.4 with the Upload folder of server 192.168.2.3, I have installed cygwin and use rsync to sync. I write a sync.sh file and a sync.bat file to do the sync. When syncing data in the Upload folder of server 192.168.2.3 located in Upload/./ of server 192.168.2.4. I don't know why the dot is created and the sync data is saved in it.

The content of file sync.sh is:

rsync -av [email protected]:/cygdrive/d/Upload/ /cygdrive/d/Upload/

The content of file sync.bat is:

C:\cygwin64\bin\bash -l /home/Administrator/sync_upload_adminui.sh

1 Answer 1

0

A single dot in a directory path, whether that path is seen from Windows or from Cygwin, represents the current directory. The path Upload/./ is the same as just using Upload/

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.