+ Post New Thread
Results 1 to 14 of 14
Scripts Thread, back up script help please in Coding and Web Development; Welcome back guys, Just wondering if someone can help me out, I am currently using a xcopy script as a ...
  1. #1
    neon's Avatar
    Join Date
    Apr 2009
    Location
    Market Harborough
    Posts
    222
    Thank Post
    7
    Thanked 22 Times in 20 Posts
    Rep Power
    14

    back up script help please

    Welcome back guys,

    Just wondering if someone can help me out, I am currently using a xcopy script as a way to back up teachers laptops, this works well however there is one problem, when a teacher deletes a file the file stays in the back up folder? Is there any way of cloning a folder exactly as it appears at c:/documents and settings\user\desktop? Thanks for any help, hope everyone is ok and glad to back

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,636
    Thank Post
    229
    Thanked 862 Times in 740 Posts
    Rep Power
    297
    robocopy d:\users "\\nas01\backup\Curric\Data\Users\mon" /copyall /mir /r:2 /w:5

    should do the trick

  3. #3

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Might be a silly observation, but isn't it better it stays there unless you're doing multiple copies by week etc - otherwise when they come and say "I deleted X from my laptop last week, can you get it back?" it will have been nuked by the mirroring process...

  4. #4

    Join Date
    Jun 2010
    Posts
    198
    Thank Post
    9
    Thanked 25 Times in 24 Posts
    Rep Power
    21
    Synchtoy from Microsoft. Use it to schedule backups or run manually it has sync functions I use it for my home backup. One of the options allows for folders or files deleted on the source folder to be auto deleted on the destination ( backup) when synchtoy is run.

    check it out here
    Last edited by kili; 3rd September 2010 at 05:45 PM.

  5. #5
    neon's Avatar
    Join Date
    Apr 2009
    Location
    Market Harborough
    Posts
    222
    Thank Post
    7
    Thanked 22 Times in 20 Posts
    Rep Power
    14
    hey guys, cheers for the comments, I like the look of robocopy have installed it and written the .bat file however it will not run because it doesnt like c:\documents and settings in the path? is there any way round this?

    thanks again

  6. #6
    sister_annex's Avatar
    Join Date
    Jan 2009
    Location
    Wolverhampton
    Posts
    594
    Thank Post
    100
    Thanked 136 Times in 120 Posts
    Rep Power
    49
    try putting quotes around the file path, spaces can cause an issue

    HTH

  7. #7

    Join Date
    Sep 2010
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Anyone have the script that copies folders and fles that retain the original file creation date across drives? The folders keep copying with the current date and I want to retain the original file creation date.

  8. #8

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,224
    Thank Post
    874
    Thanked 2,717 Times in 2,302 Posts
    Blog Entries
    11
    Rep Power
    780
    you could use robocopy with the /e switch
    Robocopy - Wikipedia, the free encyclopedia

  9. #9
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,508
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47
    My backup script copies everything across to the server, but I've left mine not to delete anything. The working documents are on the staff laptop with copies on the server, I then leave it up to the teacher to decide if they want to delete folders on the server, there's always a chance when they move yeargroups to teach back in the year they were in 2 years ago they want their old stuff back!

  10. #10

    Join Date
    Sep 2010
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    The e switch doesn't work either. I forgot to mention I am using the older version (not XP026 as I am still running XP). From all I read the earlier version of RoboCopy will not keep filestamps when going across drives. My wife has a Windows 7 laptop with the latest version of RoboCopy so I guess I'll have to hook up my drives via a USB and copy them that way.

  11. #11


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,636
    Thank Post
    229
    Thanked 862 Times in 740 Posts
    Rep Power
    297
    would copying rococopy from a win7 pc to a winxp work?

  12. #12


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,038
    Thank Post
    231
    Thanked 2,705 Times in 1,997 Posts
    Rep Power
    793
    Quote Originally Posted by sted View Post
    would copying robocopy from a win7 pc to a winxp work?
    No. It doesn't work on XP.

  13. #13

    Join Date
    Sep 2010
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    If the above question was meant for me I think you misunderstood. What I meant is hook up the two drives (the drive with the data and the primary boot disk) both as slaves to the Windows 7 laptop and use RoboCopy off the Win 7 platform. To copy the data to the primary hard drive (loaded with the Win XP platform) and then reinstall that drive in the machine.

    That should work wouldn’t it?

  14. #14


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,038
    Thank Post
    231
    Thanked 2,705 Times in 1,997 Posts
    Rep Power
    793
    Quote Originally Posted by Otaruihc View Post
    If the above question was meant for me I think you misunderstood.
    It wasn't, which is why I quoted Sted.

    Quote Originally Posted by Otaruihc View Post
    That should work wouldn't it?
    This will work perfectly fine. It just depends on Neon having access to computer running Windows 7 or 2008 R2. Another alternative would be to copy the data over the network. This can be done locally or remotely using PSExec. e.g.

    Code:
    psexec -u username -p password -c -f robocopy.exe \\Source\Users$ \\Destination\Backup$\Users /COPYALL /MIR /R:1 /W:3 /NP

SHARE:
+ Post New Thread

Similar Threads

  1. Back up tapes - how far back?
    By sonofsanta in forum How do you do....it?
    Replies: 13
    Last Post: 10th March 2010, 10:55 AM
  2. Replies: 16
    Last Post: 25th February 2010, 08:59 AM
  3. Back
    By alonebfg in forum General Chat
    Replies: 6
    Last Post: 29th September 2008, 08:47 AM
  4. veritas back up - Back up Tapes
    By sharkster in forum General Chat
    Replies: 10
    Last Post: 7th June 2008, 11:30 AM
  5. Logon script & Printer script question.
    By Galway in forum Windows
    Replies: 3
    Last Post: 29th August 2007, 11:00 AM

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
  •