Jump to content

Is it possible to automatically backup plastic server?


mengke

Recommended Posts

  • 3 weeks later...

Hi!

 

if you are looking for a real-time backup it's 100% doable.

 

There are some database engines that allows you do it, but sometimes it's hard to get it easily working. You can search it for your current database front end but I would like to give you an easier choice.

 

You can use the replication to get all the new changes replicated in real-time to a backup server.

 

First of all is setting up a new Plastic SCM server on a different machine so if the first one dies the backup will be safe in another one (cloud, local, whatever).

 

Once you have the secondary server running you just need to setup an "after-checkin" trigger that will replicate the new change to the secondary server. Remember to create an script that launches the script in a different process so you don't keep the main server waiting for the replication to finish.

 

The communication should be:

 

1-Plastic SCM server runs a checkin.

2-The Plastic SCM server runs your trigger and waits for it to finish. (so the client is waiting for the check-in to finish too)

3-Your trigger script launches the replication in a different process so immediately the control is returned to the Plastic SCM server.

4-The server finishes the checkin.

 

 

There's a tool called "RepliKate" that is able to find new changes and replicate them: http://www.plasticscm.net/index.php?/topic/2936-show-all-comments-in-branch-explorer/?p=16759

Maybe you can use it since you just need to launch it to get the new changes pushed to the secondary server.

 

The interesting thing of having this setup is that if the first server dies you just need to point your client to target the secondary server and that's all!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...