I am trying to write a simple test script that executes a single rsync call. Once I get the syntax right, the script will be expanded to incorporate several rsync instructions to save me time.
I'm using a Cygwin Terminal on Windows 7 to run Rsync.
The script is called "backup" and I call it from the cygwin terminal using "./backup". Have used chmod to make it executable.
When I execute the rsync instruction as a standalone instruction at terminal prompt, the file copies to the target folder perfectly.
However, when I try and drop the same instruction into a script, it copies the file over from it's original file name "mvi_1840.mov" to a file with the name "." -- literally a single period. I can rename the file to a .mov file and it works fine but naturally, I don't want to have to do this.
The one other thing I will mention is that the file is located in the /home/"username" directory in cygwin vs /bin. But I would not think that this would make a difference.
I have pasted the contents of the script file below:
rsync.exe -rltDvP --exclude "System Volume Information" --exclude
"RECYCLER" --exclude=\$RECYCLE.BIN --delete "/cygdrive/c/users/<USERNAME>
Any help would be greatly appreciated!