On 04/06/2011 10:41 AM, Joel Eddy wrote:
Eric,
Would you put this in a script file to run? That’s what I’m trying to
do. No luck as yet tho.
find /home/vpopmail/domains/mydomain.com \ << If I use this it scrolls
the entire domain structure by “FAST” by the way.
That's because there's no -exec yet. It's doing the default action,
which is -print.
-name Maildir/new \ << If I include this I get “find: -name/Maildir/new:
unknown option”
I don't think that would have worked, come to think of it. -name can
only specify a filename, not a directory/filename as I had it.
Basically, you want to use find to get a list of all of the new|cur
directories, then use the -exec option to run rsync on them. Using just
the default -print option initially to get the name part(s) right will
make things a little easier, as you have done.
How about something more like this:
find /home/vpopmail/domains/mydomain.com/*/Maildir/+(cur|new)
Does that get them all?
-exec rsync -avh {} <destination> \; << Haven’t tried this yet.
Any suggestions?
Joel
PS: If I/we get this to work I’ll wiki it on the wiki
You mean when, not if. ;)
--
-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: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com