Andy2789 Posted May 24, 2018 Posted May 24, 2018 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.
Steve21 Posted May 24, 2018 Posted May 24, 2018 Best way would be to script it, and then use a subfolder/file command to copy only what's inside it. Steve
Andy2789 Posted May 24, 2018 Author Posted May 24, 2018 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.
Andy2789 Posted May 24, 2018 Author Posted May 24, 2018 Steve you are a legend! I have worked it out!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now