question
0
Votes
Votes
2
Answers
Answers
M$0.25
What's the easiest method to backup my webserver onto a standby machine? It's running on Debian.
The asker of this question selected no best answer.
answers (2)
Every time you deploy your master webserver, just have a script rsync your changes to your failover server, or copy all of your changes to yoru fialover server. Because your webserver is static, your changes are infrequent, this will work. Your failover will be exactly like your master. More simply,
rsync -vcr user@failover_server
add this to your crontab on your local acount, and set up no password ssh between the two boxes so you can automate the process. Kick it off arround the time you usualy deploy your webserver.
http://www.manpagez.com/man/1/rsync/
http://www.manpagez.com/man/5/crontab/
http://www.manpagez.com/man/8/httpd/
If you dont have rysnc (and you should) run apt-get install rysnc
http://linux.die.net/man/8/apt-get
and thinks for using debian. Debian Rox.
rsync -vcr user@failover_server
add this to your crontab on your local acount, and set up no password ssh between the two boxes so you can automate the process. Kick it off arround the time you usualy deploy your webserver.
http://www.manpagez.com/man/1/rsync/
http://www.manpagez.com/man/5/crontab/
http://www.manpagez.com/man/8/httpd/
If you dont have rysnc (and you should) run apt-get install rysnc
http://linux.die.net/man/8/apt-get
and thinks for using debian. Debian Rox.
Use "rsync" to backup from one server to another. rsync is a package available on debian.
Related questions
140 characters left












