A bash script that can restore a backup

Anything is possible, as I've said before. Even striking a match on a wet cake of soap (I've explained how on several forums over the years).

But some things are harder than others.

Sure you can do it.

If you're defining the specific environment it should even be easy.

One suggestion, though... If I'm reading you correctly what you want to do is restore a backup. So the script should probably be named restore.sh.

Jeff
 
jlasman said:
Anything is possible, as I've said before. Even striking a match on a wet cake of soap (I've explained how on several forums over the years).

But some things are harder than others.

Sure you can do it.

If you're defining the specific environment it should even be easy.

One suggestion, though... If I'm reading you correctly what you want to do is restore a backup. So the script should probably be named restore.sh.

Jeff
Thanks Jeff,
I want to create a backup server with the same IP as the primary server, so when the main server falls the backup will launch.
 
You can figure out which files need to be in sync, and then run rsync to keep them synchronized.

However ...

The only way you can keep two servers with the same IP# on the 'net is to have both of them behind one of those (expensive) failorver devices made just to allow that.

Otherwise depending on your TCP/IP stack (on your server) and your router's TCP/IP stack (on the router's server) either your second server to boot at the same IP# will fail to start it's networking service for that IP#, or your router will fail to route that IP# to either server.

Of course if you buy one of those failover devices, then it becomes your point of failure.

Jeff
 
Back
Top