Re: Fileserver consolidation
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Mon, 5 May 2008 18:16:06 +0200
"Axel Schwenke" <usenet_spam@xxxxxx> wrote in message
news:Xns9A958644A9AEDusenetspamgmxde@xxxxxxxxxxxxxxxx
Hi there!
My task is to consolidate three fileservers into one.
Today the structure is like this:
Source Server FS1/2/3:
d:\dept1\Smith
d:\dept1\Miller
d:\dept1\groupfolder-dept1
...
d:\dept2\Taylor
d:\dept2\King
d:\dept2\groupfolder-dept2
...
Destination Server FS-new:
d:\home\%username_a-to-o%
e:\home\%username_p-to-z%
d:\depts\%deptname%
Now I got two partitions on one big server that can be filled with the
files of the users.
I want to fill d: of the new server with files from users from A to O and
drive e: should store the users from P to Z.
I want to use robocopy to copy all files from the servers to the new one.
But it would be hard to copy and edit one line per user. There are abt.
250
users.
Do you know a way to copy only the files from users A-O to the one and P-Z
into the other drives. Of course I need to transfer the NTFS-rights with
the files.
TIA and greetings
Axel
Your use of the "Dept" name is a little unclear but basically
you could use this batch file to copy your user folders to
two different drives:
@echo off
set source=D:\Dept1
cd /d "%source%"
for /d %%a in (*.*) do call :Copy %%a
goto :eof
:Copy
set Dir=%*
if %Dir:~0,1% GTR P (set drive=E:) else (set drive=D:)
echo robocopy "%source%\%Dir%" "%Drive%\Home\%Dir%" *.*
Remove the word "echo" in the last line to activate the batch
file.
It would be a good idea to use the same batch file to create
the user shares on the target server, e.g. like so:
net share "%Dir%"="%Drive%\Home\%Dir%"
.
- Follow-Ups:
- Re: Fileserver consolidation
- From: Axel Schwenke
- Re: Fileserver consolidation
- References:
- Fileserver consolidation
- From: Axel Schwenke
- Fileserver consolidation
- Prev by Date: Re: copy file on desktop with script vbs
- Next by Date: Create script to pull variable from a list
- Previous by thread: Fileserver consolidation
- Next by thread: Re: Fileserver consolidation
- Index(es):
Relevant Pages
|