On 04/05/2011 02:27 PM, Joel Eddy wrote:
I've got an older server running qmail. That sever used the older diredtory
structure.
Meaning as an example
/home/vpopmail/domains/mydomain.com/user_id<<14 id's in this directory
/home/vpopmail/domains/mydomain.com/0/user_id<<13 id's in this directory
/home/vpopmail/domains/mydomain.com/1/user_id<<5 id's in this directory
Anyway you get the idea. It goes all the way to D this way. Variable number
of id's per directory.
The new qmail toaster structure puts every id in one directory.
Now the question is this. I'm thinking of use rsync to copy just the new
mail in the new folder from the old server to the new one.
I've gotten it to work if I use a one line command to do it. But I don't
want to have to do that for 200 accounts. PITA.
Can I not use a one liner to get rsync to pull everything from the old
servers new folders to the new servers new folder for each account?
Pulling my hair out.
---------------------------------------------------------------------------------
I don't think I'd try to do it all in one command. I think I'd use the
find command as a driver for rsync, something like:
find /home/vpopmail/domains/mydomain.com \
-name Maildir/new \
-exec rsync -avh {} <destination> \;
Or use find to identify each user, then rsync the user with the command
you have.
Don't beat your head on the wall. ;)
P.S. It would be nice to see what you have that works for one user.
--
-Eric 'shubes'
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]