rsync -avz IP OF System you want to connect to:/home/vpopmail/domains/YOUR_DOMAIN.com/DIR_TO PULL FROM/USER_ID/Maildir/new/ home/vpopmail/domains/YOUR_DOMAIN.com/USER_ID/Maildir/new
All one line of coarse. Works slicker that you know what. But I need to pull an entire server. I may experiment with a script with multi line rsync for each account on the server. I'll have to set rsync to run as a daemon with a secrets file to bypass typing the password every line. You can also pull the cur directory and what ever other files you need by changing the paths. And you can exclude files with rsync to. Coarse most of you may already know that. Anyway, thanks for the tip. I'll try and see what works. Take Care Joel _____ From: Eric Shubert [mailto:[email protected]] Sent: Tuesday, April 05, 2011 8:16 PM To: [email protected] Subject: [qmailtoaster] Re: Re; rsync question 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] _____ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1209 / Virus Database: 1500/3552 - Release Date: 04/05/11
