synchronisation via batch commands

November 23rd, 2006 - 10:41 am ET by anthony | Report spam
I have a batch file backup in place in the office which copies all
files from a shared directory to a separate PC - providing date stamp
is newer etc. However, if a user deletes a file from the source
directory a copy will still exist in the destination directory. Is
there a batch command I can run, say once a week, that will compare the
directory structures and delete any redundant files from the
destination directory. Examples would be really helpful.

Many thanks,

Anthony
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 John John
November 24th, 2006 - 12:29 pm ET | Report spam
You're welcome.

John

wrote:

Thanks for your prompt help John. Have read the tech spec and it looks
perfect for what I need - the /purge switch is just what I was looking
for.

Thanks again,

Anthony :)


John John wrote:

You could do that with Robocopy.exe
http://support.microsoft.com/kb/160513/
http://www.ss64.com/nt/robocopy.html

Or with xxcopy: http://www.xxcopy.com/index.htm

John

wrote:


I have a batch file backup in place in the office which copies all
files from a shared directory to a separate PC - providing date stamp
is newer etc. However, if a user deletes a file from the source
directory a copy will still exist in the destination directory. Is
there a batch command I can run, say once a week, that will compare the
directory structures and delete any redundant files from the
destination directory. Examples would be really helpful.

Many thanks,

Anthony









Similar topics