Jump to content


Photo

File move app for rebuilding WHS


  • Please log in to reply
9 replies to this topic

#1 axoid

axoid

    HSS Pro

  • Members
  • 223 posts
  • LocationColumbus Ohio

Posted 22 September 2011 - 09:23 AM

A couple of weeks ago my ex490’s sys drive developed a fault that prevented the server from booting. I didn’t have any luck with a recovery so I popped in a new drive for sys and stared rebuilding. During the process of moving files from the old data drives to newly created shares I found that I wasn’t satisfied with the file move function in Windows Explorer. Nor did I want to use xcopy, which would cause me to waist time coping duplicate files.

So I wrote a command line Move app that will move files from one location to another, create the directory structure and only move files that are not already in the target location.

Does anyone want me to put this tool under downloads?

Bill Rockhold
HP EX490(E5700 CPU & 2Gb) w/ 5 drive SATA enclosure, WHS v.1
DIY Build (E5800 CPU & 4Gb), WHS 2011 w/Drive Pool.
Acer Icona W700 tablet, HP DV7 laptop, DIY Desktop (AMD 965 Black & 8gb)


#2 dvn

dvn

    HSS Elite

  • Donating Member
  • 1,771 posts

Posted 22 September 2011 - 10:22 AM

Sure, and you could post the code here as well.

#3 ikon

ikon

    HSS Elite Genius

  • Donating Member
  • 16,090 posts

Posted 22 September 2011 - 04:45 PM

just wondering, why not just use RoboCopy, RoboCopyGUI, or RichCopy?

If at first you don't succeed, do it like your mother told you.


#4 axoid

axoid

    HSS Pro

  • Members
  • 223 posts
  • LocationColumbus Ohio

Posted 23 September 2011 - 06:44 AM

I didn't realize that I could use robocopy on V1. Just didn't think about it.

Plus it only took me a couple hours to write my program.

Bill Rockhold
HP EX490(E5700 CPU & 2Gb) w/ 5 drive SATA enclosure, WHS v.1
DIY Build (E5800 CPU & 4Gb), WHS 2011 w/Drive Pool.
Acer Icona W700 tablet, HP DV7 laptop, DIY Desktop (AMD 965 Black & 8gb)


#5 ikon

ikon

    HSS Elite Genius

  • Donating Member
  • 16,090 posts

Posted 23 September 2011 - 03:36 PM

I use RoboCopy on my v1 to backup my data to an external eSATA enclosure every night.

If at first you don't succeed, do it like your mother told you.


#6 jmwills

jmwills

    HSS Genius

  • Donating Member
  • 9,164 posts
  • LocationSweet Home Alabama

Posted 23 September 2011 - 03:38 PM

RoboCopy is very useful in that the file permissions remain intact. If RoboCopy seems a bit overwhelming, you can also look a RichCopy.
Windows 10 Desktop - Intel D8H67BL, Intel i3-530 CPU w/16GB G-Skill DDR3 1333 RAMServer 2012R2 -Norco RPC 450B- SuperMicro D-1541 SOC w/128GB RAM – Roles: Hyper-V (SharePoint 2013/2016-DC-SQL-WSE 2012R2, WHS 2011 Test, Windows10,)<p>WHS2011-Norco RPC 450B - i3 SandyBridge - 8GB RAM Rocket RAID 2720 4 x 3TB WD RedTravel Laptop: Lenovo U310 13.3" Windows 10 Build 10544

#7 ikon

ikon

    HSS Elite Genius

  • Donating Member
  • 16,090 posts

Posted 23 September 2011 - 04:06 PM

RoboCopy can seem complicated but, in reality, you mostly only need 1 or 2 command lines, and not many parameters on them either. The benefit is it's so robust. If it says it copied the file successfully, then you know it was.

If at first you don't succeed, do it like your mother told you.


#8 JerryW

JerryW

    HSS Pro

  • Members
  • 195 posts

Posted 29 September 2011 - 01:10 PM

FYI: TeraCopy is a good GUI-based copy program as well. I use it in my work environment to copy data from server to server.

Sorry for butting in, just my two cents worth.

#9 ikon

ikon

    HSS Elite Genius

  • Donating Member
  • 16,090 posts

Posted 29 September 2011 - 03:43 PM

please JerryW, butt in more often :)

If at first you don't succeed, do it like your mother told you.


#10 JerryW

JerryW

    HSS Pro

  • Members
  • 195 posts

Posted 30 September 2011 - 08:30 AM

please JerryW, butt in more often :)


Thanks, ikon