Originally Posted by
Lars Noodén
Another option might be to use the built-in
replication capabilities. You'd have to have MySQL running on that second machine but there's no reason it would have to be available to anyone or anything.
Thats an good idea.
But if you with that method how would MySQL2 (backup) react if data is deleted by mistake on MySQL1.
I suppose it would be replicated to MySQL2 and than loosing the backed up data.
Another solution also could be using ZFS (how good has ZFS on ubuntu become?).
WIth ZFS we can create a zpool and mount it to (for example) /mysql1
Than for keeping downtime low we can create a second zpool called /mysqlbackup
Make a snapshop from /mysql1 to /mysqlbackup and than backup /mysqlbackup.
Now i am not 100% sure BUT! zfs has a built in tool for backing up a zpool from one zfs machine to another
Code:
zfs send poolname/filesystem@snapname | ssh user@remote "zfs recv"
AND maybe this tool have some rsync features, that if the connection goes down in transfer you can pick up where you left of.
The awesome thing about the snapshot is that it only takes up disk space when changes happen.
So when you create any snapshot it initial takes up 0 MB's and as changes occure it takes more and more place.
But if u create a backup and than delete the snapshot all is good for low storage systems (low secondary storage).
Awesome thanks will take a look at it
Bookmarks