I'm new to rsync and need some help with syntax or common understanding.
I have 3 servers:
Source (
SRC
)Destination (
DST
)Server where rsync and ssh are installed.
I use rsync from Cygwin
Note: SRC
and DST
do not have rsync installed. All 3 servers run Windows 2012 R2.
My goal: I need to copy/sync folder X
located on SRC
e.g. C:\Program Files\X
to DST at the same location.
I run this command:
rsync -a \\SRC_server\Program Files\X \\DST_server\Program Files\X
I've got the error that it failed to recognize the path.
Note: The server where rsync is installed could see and write to SRC
and DST
i.e. I could access and write to remote servers.
My questions:
- Should I install rsync and ssh to
SRC
andDST
as well? - What is wrong with the syntax of my command?
I want a simple copy/sync option and I'll optimize it later. Right now I can't even copy files from SRC
to DST
so I'd like to see if someone can help me get this resolved.
\\
between the file file path likeC:\\Program Files\\X
or else use forward slashes in place of the single backslash e.g.C:/Program Files/X
... I wasn't able to get to the Server 2012 machine remotely to test the other thing for you but hopefully I'll be able to get my remote access to it re-established tomorrow and get some time to test the WSB as I told you I would. If you happen to determine that rsync solves that problem with the millions of files or whatever though, that'd be great news!!robocopy
be a better solution thanrsync
considering it's a native program and does everything required, including syncing directory content in real-time based upon an arbitrary number of changes (1 is the minimum) that can be specified? SeeRoboCopy /?