Hello
There is an already made solution called snapback2 (based on rsync)
http://www.perusion.com/misc/Snapback2/
Either you use it as an incremental backup or just for a single backup
You can ssh in or simply do it local (by mounting the destination
machine into your qmail)
-Philip
On 04/06/2011 08:24 PM, Eric Shubert wrote:
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. ;)