search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsFAQs
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Operating SystemsArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

View Other Windows Server Posts   Ask New Question 
2008 server job scheduler to run robocopy
FRED SHIKE posted at Thursday, April 23, 2009 3:56 PM

Trying to schedule a job using the job scheduler on a microsoft  2008 server. Below is the command  I am trying to run. It works manually on the command prompt but will not work in the job scheduler.  Drive z: is a mapped drive on the backup server, the actual drive letter is d:. I am trying to backup a shared drive on  the main server to a shared drive on the backup server every nightly.  

   robocopy d:\shared\sus\ z:\\valley2\sqlbackups  /copyall

 

      

  


 
  Re::2008 server job scheduler to run robocopy
egg egg replied to FRED SHIKE at Thursday, April 23, 2009 10:15 PM
Check this if it works for you...

http://forums.techarena.in/server-scripting/796498.htm
 
create a .bat file and then execute
Venkata K replied to FRED SHIKE at Thursday, April 23, 2009 10:57 PM
the batch file throguh windows scheduler
@Echo off
robocopy "C:\Pictures Working Directory" "D:\PhotoBackup" /E /ETA /Z /PURGE
Goto Defrag
:Defrag
defrag c:
defrag d:

Goto Done
:Done
Echo Done
Pause 

save the aboe code as .bat and then schedule in windows tasks.

Hope this works!
Cheers