Re: Question on Robocopy




"Newell White" <NewellWhite@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:32AFDCD9-2EBA-4115-8BAF-E0AF03B5F648@xxxxxxxxxxxxxxxx
I use this for backing up selected folders from a fileserver with very
brief
log file:

@ECHO OFF
REM batch job to copy changed files from folder \\server1\share\%1 to
E:\backserver1\%1
REM
ECHO %date% copy %1 to backserver1 %time% >> %2
IF NOT EXIST E:\backserver1\%1 MD E:\backserver1\%1
ROBOCOPY \\server1\share\%1 E:\backserver1\%1 /e /xo /r:3 /w:0 /ndl /nfl
/njs /njh /np
ECHO ROBOCOPY errorlevel %errorlevel% >> %2


The /e option copies empty sub-folders to provide the mirror structure.
--
Newell White

Hi Newell: I'm new to robocopy and am interested in implementing it in the
following scenario. I have a primary IIS6 server and I want to duplicate the
website root on the server out to five load-balanced servers.

Is the script above just a .BAT file that you're calling with scheduler? If
so, would I use a similar syntax, just with five robocopy commands (one for
each server)?

Or is there a better way to push updates out to the 5 servers?

TIA, AK




"DT" wrote:

Guys,

I might be having a blonde moment but I recall in the past (have not used
it
for a few years) that Robocopy had the ability to mirror two folders, and
update files based on the file dates in the two folders. That is, if for
instance, we are sync'ing folder A and folder B and the file existed in
both
then the older of the two would be replaced. However I have setup the
following:

robocopy.exe \\server1\share\folder1 \\server2\share\folder2 /MIR

This deletes anything on server2 that does not exist on server1

So I tried this:

robocopy.exe \\server1\share\folder1 \\server2\share\folder2 /MIR /XX
/LOG+:sync2nth.txt

This does not delete anything BUT if a file exists on both servers the
copy
on server2 is overwritten no matter what the file date is.

I am sure I've setup robocopy in the past to do a simple mirror and keep
the
newer version of any files that already exist.

Can anyone help out?

Thanks in advance

Darren





.



Relevant Pages

  • Re: Proper FTP manager required
    ... program to access the server. ... I've always used it with Robocopy, which is available free from microsoft as ... the latest version of Webdrive now incorporates folder ... A killer app ...
    (uk.net.web.authoring)
  • RE: FSMW Data copy - deletes existing folders
    ... source domain to the destination with full file copy instead of the ... When you use robocopy, there is a parameter -m, which will copy source ... >>move data from an NT server to a W2K3 server using FSMW. ... >>folder already exists on the target server. ...
    (microsoft.public.windows.server.migration)
  • HELP!!!! recover files that were copied over using the command prompt
    ... I have a folder that I copied from one server to another server. ... robocopy to copy these files over but I did not know robocopy would ... Prev by Date: ...
    (microsoft.public.windows.server.migration)
  • Re: Email enable doc lib
    ... navigate to the public folder and send some posts with attachments to the ... Microsoft CSS Online Newsgroup Support ... I have disabled forms base Athentication from the default V.Smtp server ...
    (microsoft.public.windows.server.sbs)
  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)

Quantcast