Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50630 views
#!/usr/bin/env bash

# Run sync on all projects that aren't currently in sync across all data centers.  This is mainly to handle the 
# rare case of a sync failure or when a compute server goes down temporarily. 

cd $HOME/salvus/salvus
. smc-env

time echo "x={};require('bup_server').global_client(keyspace:'salvus', cb:(e,c)->x.c=c; status=[];x.c.repair(status:status,dryrun:false,cb:(e,projects)->console.log('DONE',e);x.projects=projects;console.log((a.project for a in status));console.log(projects); process.exit() ))" | coffee