twcadmin
asked on
Best Way To Copy New Files To Remote Server
What is the best way to copy new files to a remote server by scripting? I have a server in the DMZ with staff pictures. I want to schedule a script at night to copy any NEW staff pictures to a folder on the DMZ server rather than wasting resources overwriting old images too.
1. Log into the remote server folder
2. Copy new files only
1. Log into the remote server folder
2. Copy new files only
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was hoping there would be a built in command without having to install a new package but no biggie. What about providing credentials to the DMZ server since its not part of the domain?
source and destination not in domain?
ASKER
Correct. The server is in a DMZ and part of a workgroup not our internal active directory domain. When I connect to a shared folder I have to enter a different username and password.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This willcopyonly file which are not in destination_dir, rest are skipped
robocopy source_dir_path destination_dir_path *.jpeg
http://technet.microsoft.com/en-us/library/cc733145%28WS.10%29.aspx