We help IT Professionals succeed at work.

How can I automate Richcopy to copy files from a remote server to a local server?

FlashJack9
FlashJack9 used Ask the Experts™
on
Hi,

I'm trying to find a way to copy some files from a remote server that need to be backed up to a server we have locally here so they can be put on the backup tapes.  I'm able to use Richcopy to manually copy the files, but I'd like to automate it to do a copy each night of the new files that get added to the folders each day.  I've tried using Scheduled Tasks, but couldn't get it to work correctly.  

Any help with this would be great.  If there are any other suggestions other than using Richcopy I'd like to hear those also.

I'm not very good with command lines, so GUI would be the preferred way to do this.  

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2007

Commented:
robocopy ( free from MS ) is fantastic.

I hope this helps !
Top Expert 2007
Commented:
sample batch file

@echo off
for /f "tokens=2-4 delims=.:/-, " %%u in ('date /t') do (
  for /f "skip=1 tokens=2-4 delims=/-,()." %%x in ('echo.^|date') do (
    set %%x=%%u
    set %%y=%%v
    set %%z=%%w))

rem set
rem echo "test date" > c:\bin\%dd%-%mm%-%yy%.txt
robocopy e:\Data\DCC1 R:\Public\ /S /MAXAGE:1 /TS /FP /NP /TEE /XJ /R:1 /W:2 /LOG:e:\data\rcopy-rdrv1-%mm%-%dd%-%yy%.txt

------------

Top Expert 2007

Commented:

Author

Commented:
Is there a way to do this with Richcopy?  Or with Robocopy GUI?  

I'm not quite comfortable yet with command lines.
Top Expert 2007

Commented:

Author

Commented:
I've looked at Robocopy GUI a bit, but I don't see an automate option.

I'm able to get the files copied that I need, it's just the automated part of it that I'd like to take care of.  Would something like Backup Exec with a remote agent be able to do that?  I'd like to try to go with a free option though.
Top Expert 2007

Commented:
something easier for you.

Free MS tool ; SyncToy v2.0 Sync Toy v2.0 synch toy
http://www.microsoft.com/downloads/details.aspx?familyid=C26EFA36-98E0-4EE9-A7C5-98D0592D8C52&displaylang=en

Author

Commented:
SyncToy would be a good tool, but I wouldn't want it to continuously sync files during the day.  That would just be creating a lot of network traffic.  I'd like to get it set so it copies the new files at night.
Top Expert 2007

Commented:
See if their is an option for setting a schedule.

If not, then it is time to learn about batch files....


Top Expert 2007

Commented:
robocopy is still the best.

See if the gui can create  a batch file or show you the command line created, , and then schedule it in the task scheduler.

Author

Commented:
Ok, I'll look into that.  I'll see if I can figure out a way to get the batch file to work.

Author

Commented:
Thanks for the help with this one.