I know that the robocopy command will only work with existing drives, not remote servers, so if I'd like to use the robocopy command to run periodic file backups from a remote server, I have to map that to a network drive.
My script so far is something like this:
rem # Map the drive net use R: \\server\path-to-file /USER:username rem # Now use robocopy robocopy.exe R:\ C:\local\backup\destination rem # Disconnect the mapped drive net use R: /delete
In the first line where I map the remote server to a local network drive, is there a way for me to specify a login with a private key location, rather than a password? That's the only way I can connect to my remote server.
Any ideas would be much appreciated! :-)