+ Post New Thread
Results 1 to 2 of 2
Windows Server 2000/2003 Thread, ROBOCOPY Through NT Backup Utility in Technical; I am using the below ROBOCOY script for copying the data. C:\ROBODO\ROBOCOPY.EXE "D:\PhyMD" "\10.10.100.10\d$\PhyMD" /ZB /TEE /e /np /xo /v ...
  1. #1

    Join Date
    Mar 2010
    Location
    Delhi
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    ROBOCOPY Through NT Backup Utility

    I am using the below ROBOCOY script for copying the data.

    C:\ROBODO\ROBOCOPY.EXE "D:\PhyMD" "\\10.10.100.10\d$\PhyMD" /ZB /TEE /e /np /xo /v /sec /r:1 /LOG+:14032010.LOG

    D:\PhyMD(Source) is located on another Server and \\10.10.100.10\d$\PhyMD(Destination) thing is that every time I have to connect the destination path when I start the command because the Server has different credential and also change the log file name as manually. I want to make a NT script for this.
    Is it possible ?

  2. #2

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    %date:~6,4%-%date:~3,2%-%date:~0,2% will give you the date in YYYY-MM-DD format within a batch file - I use it here for my backups. Can you be a bit more clear on the first part?

    Are you running Robocopy from Machine 1, trying to copy from Machine 2 to a share on Machine 3 (what it sounds like) or do you mean you're running robocopy on machine 1 (the same machine D:\PhyMD is on) and trying to copy to the share on machine 2?

    If it's the latter, not sure that Robocopy can pass a different username/password, you'd have to either add an account on machine 2 with matching username/password or map a drive first and copy to that then disconnect afterwards - e.g.

    net use E: \\10.10.100.10\d$\PhyMD /user:username password
    C:\ROBODO\ROBOCOPY.EXE "D:\PhyMD" "E:\PhyMD" /ZB /TEE /e /np /xo /v /sec /r:1 /LOG+:%date:~6,4%-%date:~3,2%-%date:~0,2%.LOG
    net use E: /delete

SHARE:
+ Post New Thread

Similar Threads

  1. Robocopy some help...
    By Nemernic in forum Scripts
    Replies: 6
    Last Post: 28th July 2009, 11:23 AM
  2. Robocopy Help
    By Gatt in forum Windows
    Replies: 2
    Last Post: 11th July 2008, 11:06 AM
  3. Robocopy Help
    By soze in forum How do you do....it?
    Replies: 15
    Last Post: 2nd June 2008, 02:42 PM
  4. Robocopy
    By acrobson in forum How do you do....it?
    Replies: 16
    Last Post: 22nd December 2007, 01:41 PM
  5. Backup Script for NT backup and Robocopy
    By ChrisH in forum Scripts
    Replies: 12
    Last Post: 20th October 2005, 01:01 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •