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
  • 176 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

  • Moderators
  • 1,637 posts

Posted 22 September 2011 - 10:22 AM

Sure, and you could post the code here as well.
  • Rich's Random Podcast Generator
  • Desktop - i7-2600K | ASRock Z68 | 128GB Crucial RealSSD C300 | Cooler Master Silent Pro 600W | Lian Li K60B case
  • VM Server - Q9550 | Gigabyte EP45T-USB3 | 2 x 4 GB DDR3 1333 | Lian Li KB60
  • HTPC - Revo 3610
  • WHS 2011 - Core i3-540 system | Lian Li K60B case
  • HP MSS EX495

#3 ikon

ikon

    HSS Genius

  • Donating Member
  • 8,584 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
  • 176 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 Genius

  • Donating Member
  • 8,584 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
  • 5,130 posts
  • LocationHuntsville, AL

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 7 Desktop - Antec 100 Case, Intel D8H67BL, OCZ 550W PSU, Intel i3-530 CPU w/16GB G-Skill DDR3 1333 RAM
Server 2012 - Fractal Arc Midi, CoolerMaster M600 PSU, ASUS P8H67V, Intel i5-2500 CPU w/32GBG-Skill DDR3 1333 RAM, 90 GIG OCZ SSD OS Drive – Roles: Hyper-V (WHS-SharePoint-DC-SQL-Exchange-WSE 2012), Print Server - Rocket RAID 2720 5x2TB
HTPC Build - Silverstone GD05 Case, ASUS P7H55-M PRO, CoolerMaster M600W PSU, Intel i3-530 CPU w/4GB G-Skill DDR3 1333 RAM. OCZ 60GB SSD Drive for the OS with a 120GB WD 2.5" Blue drive for data storage.
Travel Laptop: Dell XPSL502X 15.6"

#7 ikon

ikon

    HSS Genius

  • Donating Member
  • 8,584 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
  • 183 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 Genius

  • Donating Member
  • 8,584 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
  • 183 posts

Posted 30 September 2011 - 08:30 AM

please JerryW, butt in more often :)


Thanks, ikon




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users