voxler Posted January 24, 2017 Report Share Posted January 24, 2017 hi all we just purchased a team licence for our little game dev studio and the main server is running without issues on linux ubuntu 16.04 i want it to replicate automatically on the backup server (another machine under linux ubuntu 16.04) i already followed the install steps from : https://www.plasticscm.com/plastic-for-linux/ubuntu-16.html for the backup server and created a "plasticscm" user on both sides... so what s next please ? :-) Link to comment Share on other sites More sharing options...
manu Posted January 24, 2017 Report Share Posted January 24, 2017 Hi voxler! well now that you have a secondary server you just need to periodically push the new changes to a remote repository using the "cm replicate" command. You can script it or you can reuse the "repliKate" tool in order to make it even easier: http://blog.plasticscm.com/2012/02/after-accidentally-cloning-sexy.html Link to comment Share on other sites More sharing options...
voxler Posted January 24, 2017 Author Report Share Posted January 24, 2017 hi manu, thanx for the fast answer ! "cm replicate" = cm comand not found, is it from the client package only ? CmdRunner library needed for repliKate... and it seems that it s a windows library... my server is on linux Link to comment Share on other sites More sharing options...
manu Posted January 24, 2017 Report Share Posted January 24, 2017 Hello! Yes, the "cm" command and all its subcommands are part of the client package, get it installed, you'll need it. It's indeed a windows based application, like the Plastic SCM server! Use the mono framework provided by the server to run it. "/opt/plasticscm5/mono/bin/mono replikate.exe" will do it. Link to comment Share on other sites More sharing options...
voxler Posted January 24, 2017 Author Report Share Posted January 24, 2017 it worked ! after linux client installation : https://www.plasticscm.com/plastic-for-linux/ubuntu-16.html i ran those commands : ./clconfigureclient cm lrep SOURCE:8087 mkdir emptyWK cm mkwk emptyWK ./emptyWK /usr/sbin/plasticsd restart cm makerepository localhost:8087 REPONAME cm replicate br:/dev@rep:REPONAME@repserver:SOURCE:8087 rep:REPONAME@repserver:localhost:8087 and it replicated the main branch ! good ! now how can i make a nightly update of the backup repo ? or how to activate a "trigger" to have a relatime update ? Link to comment Share on other sites More sharing options...
manu Posted January 25, 2017 Report Share Posted January 25, 2017 18 hours ago, voxler said: now how can i make a nightly update of the backup repo ? Maybe using a cron job is the easiest way. 18 hours ago, voxler said: or how to activate a "trigger" to have a relatime update ? Check this: Link to comment Share on other sites More sharing options...
voxler Posted January 30, 2017 Author Report Share Posted January 30, 2017 thanx for the answer manu in fact, i m really new with plastic and when i asked "how to make nightly update " i meant "what command do i run to make an update" (i know linux and cron really better than plastic) Link to comment Share on other sites More sharing options...
manu Posted January 30, 2017 Report Share Posted January 30, 2017 Hello! 3 hours ago, voxler said: i meant "what command do i run to make an update" You can choose from "cm replicate" or the "RepliKate" tool I mentioned before. If it's going to be for a single branch I recommend you the "cm replicate", if it's going to be for the whole repository then "RepliKate" is really handy. Link to comment Share on other sites More sharing options...
voxler Posted January 30, 2017 Author Report Share Posted January 30, 2017 i launched the same last ommand i launched 1 week ago : cm replicate br:/dev@rep:REPONAME@repserver:SOURCE:8087 rep:REPONAME@repserver:localhost:8087 and the result was : .... DataWritten Items 63 Revs 204 ACLs 0 Changesets 28 .... i launched it immediatly after and got a : DataWritten Items 0 Revs 0 ACLs 0 Changesets 0 so GREAT ! it seems to be working good :-) i ll put it on a nightly cron, thanks a lot MANU ! Link to comment Share on other sites More sharing options...
manu Posted January 30, 2017 Report Share Posted January 30, 2017 That's great! remember that for the entire repository "ReplicKate" will help you a lot!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.