+ Post New Thread
Results 1 to 4 of 4
Scripts Thread, Move Home Directories in Coding and Web Development; Hi All, Having had some issues/reservations about Ranger Migrate, I've spent the morning (whilst doing other things) putting a script ...
  1. #1

    Join Date
    Dec 2008
    Location
    Nottingham
    Posts
    572
    Thank Post
    38
    Thanked 114 Times in 104 Posts
    Rep Power
    46

    Move Home Directories

    Hi All,

    Having had some issues/reservations about Ranger Migrate, I've spent the morning (whilst doing other things) putting a script together to copy home directory information from one server to another, and change mapping in AD. It is a very simple script, but may prove a good base for others wanting to do similar things. Our home directories are all named the same as the user, so this was written to work with that fact.

    Command line should be:

    movehome.vbs /source:<source dir> /destination:<destinationdir>

    Currently I send the destination path with a \ at the end (due to not having the energy today to code checks for the \ or directory creation). This is used in the home directory, and all home directories are under one root share (instead of indiviual shares).

    Any comments welcome (would be quite happy if someone said "there's a tool that will do that for you", but I haven't spotted on whilst browsing over the past couple of days!
    Attached Files Attached Files

  2. Thanks to Willott from:

    dwimorberg (31st March 2009)

  3. #2
    danrhodes's Avatar
    Join Date
    Sep 2008
    Location
    Wath Upon Dearne
    Posts
    1,513
    Thank Post
    157
    Thanked 181 Times in 150 Posts
    Rep Power
    67
    Why not just move the files using robocopy, this way you keep the ACL intact.

    Then in AD just upate your users on mass using environment variables? Would that not be quicker and easier?

    To re-share the folders just use rmtshare.

    D

  4. #3
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    427
    Thank Post
    68
    Thanked 90 Times in 75 Posts
    Rep Power
    61
    Also Edumove

    EduMove Is Here !

    BoX

  5. #4
    danrhodes's Avatar
    Join Date
    Sep 2008
    Location
    Wath Upon Dearne
    Posts
    1,513
    Thank Post
    157
    Thanked 181 Times in 150 Posts
    Rep Power
    67
    Quote Originally Posted by box_l View Post
    Also Edumove

    EduMove Is Here !

    BoX
    Yeah EduMove it good!

SHARE:
+ Post New Thread

Similar Threads

  1. mass setting owner on home directories
    By Oops_my_bad in forum Windows
    Replies: 5
    Last Post: 31st March 2010, 06:13 PM
  2. Home Directories on a DC - Good or Bad
    By Kyle in forum Windows
    Replies: 8
    Last Post: 15th February 2008, 01:45 PM
  3. Home directories taking ages to list
    By Oops_my_bad in forum Windows
    Replies: 1
    Last Post: 30th January 2008, 02:13 PM
  4. Giving user access to all home directories
    By paularmstrong in forum Windows
    Replies: 11
    Last Post: 7th November 2007, 08:27 AM
  5. Home Directories on Moodle
    By apeo in forum Virtual Learning Platforms
    Replies: 4
    Last Post: 13th June 2007, 11:20 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
  •