Jump to content

Jay1988

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Jay1988

  1. Do you remove the echo from everywhere, or just the first echo?

    On 7/16/2014 at 6:23 AM, larsp said:

    I have just migrated from DriveBender and back to DrivePool. I tried DriveBender for a period, but it was just slower than DrivePool. When copying many files to DriveBender (ie starting FileHistory from Windows 8), it just stopped working and I had to restart the server. TV-recordings stored in DriveBender was also very slow and uresponsive in VMC. I never had that kind of problems with DrivePool. I do think that the interface in DriveBender is a little more "fancy" but stability is just more important.

     

    Anyway. To migrate back to DrivePool i did the following (on a window server 2012 essential):

     

    1. Installed DrivePool alongside DriveBender. 

    2. Release your DriveBender license before uninstalling

    3. Set up a duplicate DrivePool on the same disks that DriveBender used.

    4. Stopped DriveBender and DrivePool services from services.msc

    5. Moved alle folders on physical disks from DriveBender root folder to DrivePool root folder.

    6. Used the script below to move the duplicate files from DriveBenders location til DrivePools location (DriveBender stores the duplicate in a subfolder named FOLDER.DUPLICATE.$DRIVEBENDER, so you will have to move all the content in that folder to the folder below).

    7. Started DrivePool and uninstalled DriveBender.

    8. Used computer management to give DrivePool the same disksletter that DriveBender had.

     

    Bat file to move files stored in FOLDER.DUPLICATE.$DRIVEBENDER to the directory below (hidden files will no longer be hidden as move doesn't move hidden files). This script has to be run on all the physical disks. Stand in the \poolpart.* folder. To try  it out, stand in a subfolder where you can't do much harm.

     

    Please note that I give ABSOLUTELY NO GUARANTEE that the script will work for you. Try it out first, and if it seem to work, remove the echo

     

    @echo off
    for /r %%f in (FOLDER.DUPLICATE.$DRIVEBENDER) do if exist %%f (
      echo %%f
      cd "%%f"
    echo  attrib -h *.*
      if exist *.* (
    echo    move *.* ..
      )
      cd ..
    echo  rd "%%f"
    )

     

    All in all it took just 1 hour to set up and migrate from DriveBender to DrivePool and I did not have to duplicate 6 tb.

    This is a good tip!

    On 12/21/2020 at 10:22 PM, PhilA said:

    I made one change to the batch file text above -> I added a "-s" to the attrib line.  I was getting several files in my duplicate folders that had the system attribute flag set, and when that was set, I could not complete the move and deletion of the directory.  Adding that simple "-s" to that line solved the problem.

    My question is, is the script end up looking like this? #1

    for /r %%f in (FOLDER.DUPLICATE.$DRIVEBENDER) do if exist %%f (
      echo %%f
      cd "%%f"
    echo  attrib -h -s *.*
      if exist *.* (
    echo    move *.* ..
      )
      cd ..
    echo  rd "%%f"
    )

    or like this? #2?

    for /r %%f in (FOLDER.DUPLICATE.$DRIVEBENDER) do if exist %%f (
       %%f
      cd "%%f"
    attrib -h -s *.*
      if exist *.* (
        move *.* ..
      )
      cd ..
      rd "%%f"
    )

     

×
×
  • Create New...