Thanks for the reply.
I did not know that the bin-log also stores all the queries run by the server.
The only reason to come up with this is that i read on the MySQL site that is was the way to make incremental backups.
If mysqldump had a way to give a starting point at wich to make the dump i would be pleased.
One could make a dump every day as my affabackup does now by pre-backup.
Every dump holds every change from the last dump. Say dump.001 dump.002 ....
If disaster strikes running a restore would run pre-restore and there's were you would issue a command to collect all the dumps as one (merge).
Something is not possible at the moment?
The exact way i wanted to go with the bin-log.
Once a week:
Make mysql merge all the bin-logs. Issue a flush-log. A new log is made. Then let affa backup the /var/lib/mysql directory without the last bin-log.
Every day:
Issue a flush-log. A new log is made. Then let affa backup the /var/lib/mysql directory.
As affa uses rsync with hard-links only the modified / latest bin-logs are really transfered.
When disaster strikes:
Restore the /var/lib/mysql directory. One could issue a command to merge the bin-logs.
Sure what is in memory at that time is gone. But with the standard affa run once a day it's the same.
Sure the standard pre-backup with dump works great and is the easiest to restore.
My method is perhaps making it unwisely complex.
When switching to Zarafa it came to me that every day the entire dump would be copied using affa. That makes sense of course. It's of course not so great that it has to transfer (in my case over my ipsec vpn to my own affabox at home) all of the data over again.
A mailbox has for one given user perhaps 1 to 2 GB of data. With a few users it's already Gigabytes of data to transfer every night. Sure the attachments are stored as files under Zarafa (the Zarafacontrib is already configured that way) so that's handled by rsync.
If the bin-log way is unsafe and too complex i will abandon my thoughts about that.
I just thought it was a nice way to make use of rsync and a way to not have to transfer all the data every day.
