Jump to content

Recommended Posts

Posted

It may be I am over thinking this, so feel free to point and laugh if I am being stupid!

 

We are migrating away from RM over the summer, I need to migrate all users Home Folders to the new server. However! We have changed the username format as it's a real mess at the moment. So I need to somehow bulk copy all users work out and then migrate it into their new user folders.

 

I have worked out its a matching exercise so say a student account was e.g. BMarley.17 The new layout would be 17BMarley (this is just an example the accounts names are much worse than this), I can't get my head around telling it to copy only the sub directories and not place the top level folder in the new location. I don't want to end up with a folder in the new location called BMarley.17 with their files in. Same with staff, we are moving to staff code logins so I need to match and migrate the work over. I have hunted Googled, played and can't work it out. Any help idea, pointers or inspiration greatly appreciated.

Posted

Cheers Steve, that is what I am toying about with at the moment. I just can't get my head around the script. I got as far as pointing at the folder, working out the names and telling where to copy to. But think it's going to be a csv basically of A=B but only copy subfolder/file content.

 

My brain just isn't letting me see the answer yet.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...