Mirror Server - Rsync

Did you make a backup for that day of the week? If so what did you name it?

You can choose the backup to restore, but DirectAdmin by default doesn't make a backup every day.

If you're using rsync then your backup is always up-to-date; it's not for any date except the current one.

Jeff
 
Did you make a backup for that day of the week? If so what did you name it?

You can choose the backup to restore, but DirectAdmin by default doesn't make a backup every day.

If you're using rsync then your backup is always up-to-date; it's not for any date except the current one.

Jeff

Hi Jeff,

I'm using rsync with the script in this thread. There's a incremental backup for every day of the week with the directory named, "Monday, Tuesday ..."

If I'd like to restore a backup from a certain day of the week, how do I do that?
 
I don't see how you can make an incremental backup with rsync. My understanding is that rsync completes a complete backup. Unless you're doing something I just don't understand, then each of those dates has a full backup for that date.

Note that it's possible you're doing something I don't undertand as the man rsync file mentions the term incremental several times. But I can't see how it's done :( .

Anyone else?

Jeff
 
This part of the rsync comand:

--backup --backup-dir=../$BACKUPDIR /

Will put any changes/deletes/etc.. from the current folder to a backup dir, which in our case the backup directory are the days of the week.

Robert
 
Hi Jeff,

What method would you recommend (or currently use) to do complete server mirroring with servers that use DA.

Thanks
 
I get a few sales here and there asking for this service. I know we can charge what ever efforts it's worth becuase they usually mid-sized companies asking for this, but we just don't know how to do this.

Any recomendations from your expertise ?
 
Last edited:
Bottom line is that there is no easy way to do it.

Most companies doing it use some kind of custom, proprietary, or third-party solution, to use as a combination load-balancer/failover director.

If you want to build one you can do the analysis.

One thing to think about would be two servers, each running DNS pointing to it's own box (I've discussed this on these forums before), and for sites requiring MySQL, MySQL on yet a third server, or perhaps running some kind of mirrored MySQL solution. Onno and I looked at one a few years ago but were never happy with it.

We'd be happy to take on the analysis as an open-ended consulting job, but I couldn't possibly know how much time we'll spend before we have a solution for DirectAdmin, and in advance I don't even know how many servers would be required or what the ongoing costs might be in terms of a percentage of the cost of a single server.

Perhaps someone else who posts here might already be experienced.

Anyone?

Jeff
 
Thanks for taking the time to answer :)

I wonder if DA could create such an app, even if it's a comercial product. I have customers willing to pay top € for this setup and I'm simply saying "no" cause we don't have an easily managable way to make this happen.
 
What app? Simple mirroring?

If you have fast enough connection between the two servers, then rsync may do much of it fast enough. But if one server fails (for example) during rsync operation, one or more critical files may be out of sync.

And you're never going to be able to use rsync in realtime for MySQL, for example; you'll have to use a MySQL solution.

It's just not simple.

My opinion is that if you need replication you should be working on it, and not waiting for a commercial solution that may or may not do what you want.

But that, of course, is up to you ;).

Jeff
 
Is there anyway to escape the password prompt? I'd like to cron this script, but I can't do that as it keeps on prompting me for the password.
 
Do a ssh key authorisation to the backuping server.
By the subject, we are using DRBD, virtualization and a small balancer, which nat's between two servers and wakes up second if first is failes.
 
Last edited:
Back
Top