Skip to content

Commit

Permalink
PBM standalone go library (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudra Kar authored Jul 21, 2021
1 parent 9ba4d04 commit 83bedc4
Show file tree
Hide file tree
Showing 50 changed files with 113 additions and 116 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ endef
#TODO (jcru) Could not figure out how to compile this without CGO. We don't need gssapi support.
#BUILD_FLAGS=-mod=vendor -tags gssapi
BUILD_FLAGS=-mod=vendor
versionpath?=github.com/percona/percona-backup-mongodb/version
versionpath?=github.com/objectrocket/percona-backup-mongodb/version
LDFLAGS= -X $(versionpath).gitCommit=$(GITCOMMIT) -X $(versionpath).gitBranch=$(GITBRANCH) -X $(versionpath).buildTime=$(BUILDTIME) -X $(versionpath).version=$(VERSION)
LDFLAGS_STATIC=$(LDFLAGS) -extldflags "-static"
LDFLAGS_TESTS_BUILD=$(LDFLAGS) -X github.com/percona/percona-backup-mongodb/pbm/pitr.ibackupspan=30000000000
LDFLAGS_TESTS_BUILD=$(LDFLAGS) -X github.com/objectrocket/percona-backup-mongodb/pbm/pitr.ibackupspan=30000000000

test:
MONGODB_VERSION=$(MONGO_TEST_VERSION) e2e-tests/run-all
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Percona Backup for MongoDB
[![Go Report Card](https://goreportcard.com/badge/github.com/percona/percona-backup-mongodb)](https://goreportcard.com/report/github.com/percona/percona-backup-mongodb) [![codecov](https://codecov.io/gh/percona/percona-backup-mongodb/branch/master/graph/badge.svg?token=TiuOmTfp2p)](https://codecov.io/gh/percona/percona-backup-mongodb) [![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/percona-backup-mongodb)](https://cla-assistant.percona.com/percona/percona-backup-mongodb)
[![Go Report Card](https://goreportcard.com/badge/github.com/objectrocket/percona-backup-mongodb)](https://goreportcard.com/report/github.com/objectrocket/percona-backup-mongodb) [![codecov](https://codecov.io/gh/percona/percona-backup-mongodb/branch/master/graph/badge.svg?token=TiuOmTfp2p)](https://codecov.io/gh/percona/percona-backup-mongodb) [![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/percona-backup-mongodb)](https://cla-assistant.percona.com/percona/percona-backup-mongodb)

Percona Backup for MongoDB is a distributed, low-impact solution for achieving
consistent backups of MongoDB Sharded Clusters and Replica Sets.
Expand Down
8 changes: 4 additions & 4 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/pkg/errors"
"go.mongodb.org/mongo-driver/bson/primitive"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/pbm/log"
"github.com/percona/percona-backup-mongodb/pbm/storage"
"github.com/percona/percona-backup-mongodb/version"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm/log"
"github.com/objectrocket/percona-backup-mongodb/pbm/storage"
"github.com/objectrocket/percona-backup-mongodb/version"
)

type Agent struct {
Expand Down
8 changes: 4 additions & 4 deletions agent/pitr.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"github.com/pkg/errors"
"go.mongodb.org/mongo-driver/mongo"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/pbm/backup"
"github.com/percona/percona-backup-mongodb/pbm/pitr"
"github.com/percona/percona-backup-mongodb/pbm/restore"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm/backup"
"github.com/objectrocket/percona-backup-mongodb/pbm/pitr"
"github.com/objectrocket/percona-backup-mongodb/pbm/restore"
)

type currentPitr struct {
Expand Down
6 changes: 3 additions & 3 deletions agent/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/pkg/errors"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/pbm/backup"
"github.com/percona/percona-backup-mongodb/pbm/restore"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm/backup"
"github.com/objectrocket/percona-backup-mongodb/pbm/restore"
)

type currentBackup struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/pbm-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/alecthomas/kingpin"
"github.com/pkg/errors"

"github.com/percona/percona-backup-mongodb/agent"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/version"
"github.com/objectrocket/percona-backup-mongodb/agent"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/version"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions cmd/pbm-speed-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"time"

"github.com/alecthomas/kingpin"
"github.com/percona/percona-backup-mongodb/speedt"
"github.com/objectrocket/percona-backup-mongodb/speedt"
"go.mongodb.org/mongo-driver/mongo"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/percona/percona-backup-mongodb/pbm/storage/blackhole"
"github.com/percona/percona-backup-mongodb/version"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm/storage/blackhole"
"github.com/objectrocket/percona-backup-mongodb/version"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/pbm/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"

"github.com/percona/percona-backup-mongodb/pbm"
plog "github.com/percona/percona-backup-mongodb/pbm/log"
"github.com/objectrocket/percona-backup-mongodb/pbm"
plog "github.com/objectrocket/percona-backup-mongodb/pbm/log"
)

func backup(cn *pbm.PBM, bcpName, compression string) (string, error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/pbm/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

func TestBcpMatchCluster(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/pbm/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"strings"

"github.com/percona/percona-backup-mongodb/pbm"
plog "github.com/percona/percona-backup-mongodb/pbm/log"
"github.com/objectrocket/percona-backup-mongodb/pbm"
plog "github.com/objectrocket/percona-backup-mongodb/pbm/log"
)

func logs(cn *pbm.PBM) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/pbm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"go.mongodb.org/mongo-driver/mongo"
"gopkg.in/yaml.v2"

"github.com/percona/percona-backup-mongodb/pbm"
plog "github.com/percona/percona-backup-mongodb/pbm/log"
"github.com/percona/percona-backup-mongodb/version"
"github.com/objectrocket/percona-backup-mongodb/pbm"
plog "github.com/objectrocket/percona-backup-mongodb/pbm/log"
"github.com/objectrocket/percona-backup-mongodb/version"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/pbm/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/pkg/errors"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

func restore(cn *pbm.PBM, bcpName string) error {
Expand Down
8 changes: 4 additions & 4 deletions cmd/pbm/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/pkg/errors"
"go.mongodb.org/mongo-driver/mongo"

"github.com/percona/percona-backup-mongodb/pbm"
plog "github.com/percona/percona-backup-mongodb/pbm/log"
"github.com/percona/percona-backup-mongodb/pbm/pitr"
"github.com/percona/percona-backup-mongodb/pbm/storage"
"github.com/objectrocket/percona-backup-mongodb/pbm"
plog "github.com/objectrocket/percona-backup-mongodb/pbm/log"
"github.com/objectrocket/percona-backup-mongodb/pbm/pitr"
"github.com/objectrocket/percona-backup-mongodb/pbm/storage"
)

type statusSect struct {
Expand Down
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
# Redirect info for Edit on Github link
html_context = {
'repo_name': '/percona/percona-backup-mongodb',
'repo_url': 'https://github.com/percona/percona-backup-mongodb',
'repo_url': 'https://github.com/objectrocket/percona-backup-mongodb',
'edit_uri': 'edit/main/doc/source'
}

Expand Down
4 changes: 2 additions & 2 deletions doc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ To build the project (from the project dir):

.. code-block:: bash
$ go get -d github.com/percona/percona-backup-mongodb
$ cd "$(go env GOPATH)/src/github.com/percona/percona-backup-mongodb"
$ go get -d github.com/objectrocket/percona-backup-mongodb
$ cd "$(go env GOPATH)/src/github.com/objectrocket/percona-backup-mongodb"
$ make build
After :program:`make` completes, you can find |pbm.app| and |pbm-agent| binaries
Expand Down
2 changes: 1 addition & 1 deletion doc/source/release-notes/0.5.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ actions.

The project was inspired by (and intends to replace) the
`Percona-Lab/mongodb_consistent_backup tool
<https://github.com/Percona-Lab/mongodb_consistent_backup>`_.
<https://github.com/objectrocket-Lab/mongodb_consistent_backup>`_.

|pbm| supports |psmdb| or |mongodb| Community Server version 3.6 or higher with
|mongodb| replication enabled. Binaries for the supported platforms as well as
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/cmd/pbm-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

"github.com/hashicorp/go-version"
"github.com/minio/minio-go"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"gopkg.in/yaml.v2"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/tests/sharded"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/tests/sharded"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/pbm/mongo_pbm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

type MongoPBM struct {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/pbm/mongod.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"go.mongodb.org/mongo-driver/mongo/writeconcern"
"gopkg.in/mgo.v2/bson"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

type Mongo struct {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/pbm/pbm_ctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/docker/docker/api/types"
docker "github.com/docker/docker/client"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/backuper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math/rand"
"time"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

type Backuper interface {
Expand Down
6 changes: 3 additions & 3 deletions e2e-tests/pkg/tests/sharded/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log"
"time"

pbmt "github.com/percona/percona-backup-mongodb/pbm"
pbmt "github.com/objectrocket/percona-backup-mongodb/pbm"
"github.com/pkg/errors"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

type Cluster struct {
Expand Down Expand Up @@ -150,7 +150,7 @@ func (c *Cluster) BackupWaitDone(bcpName string) {
}

// locks being released NOT immediately after the backup succeed
// see https://github.com/percona/percona-backup-mongodb/blob/v1.1.3/agent/agent.go#L128-L143
// see https://github.com/objectrocket/percona-backup-mongodb/blob/v1.1.3/agent/agent.go#L128-L143
needToWait := pbmt.WaitBackupStart + time.Second - time.Since(ts)
if needToWait > 0 {
log.Printf("waiting for the lock to be released for %s", needToWait)
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/pkg/tests/sharded/test_backup_cancellation.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/minio/minio-go"
"gopkg.in/yaml.v2"

"github.com/percona/percona-backup-mongodb/pbm"
pbmt "github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
pbmt "github.com/objectrocket/percona-backup-mongodb/pbm"
)

func (c *Cluster) BackupCancellation(storage string) {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/test_bounds_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"go.mongodb.org/mongo-driver/bson/primitive"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

type scounter struct {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/test_clock_skew.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sharded
import (
"log"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

func (c *Cluster) ClockSkew() {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/test_delete_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

"github.com/minio/minio-go"
"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
"gopkg.in/yaml.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/test_dr_restart_agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

const pbmLostAgentsErr = "some pbm-agents were lost during the backup"
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/test_network_cut.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/percona/percona-backup-mongodb/pbm"
"github.com/objectrocket/percona-backup-mongodb/pbm"
)

func (c *Cluster) NetworkCut() {
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/pkg/tests/sharded/test_pitr_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"sync"
"time"

pbmt "github.com/percona/percona-backup-mongodb/pbm"
pbmt "github.com/objectrocket/percona-backup-mongodb/pbm"
"go.mongodb.org/mongo-driver/bson/primitive"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

func (c *Cluster) PITRbasic() {
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/tests/sharded/trx.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"go.mongodb.org/mongo-driver/mongo/readpref"
"go.mongodb.org/mongo-driver/mongo/writeconcern"

"github.com/percona/percona-backup-mongodb/e2e-tests/pkg/pbm"
"github.com/objectrocket/percona-backup-mongodb/e2e-tests/pkg/pbm"
)

type shard struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/percona/percona-backup-mongodb
module github.com/objectrocket/percona-backup-mongodb

go 1.13

Expand Down
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2c
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/aws/aws-sdk-go v1.28.9 h1:grIuBQc+p3dTRXerh5+2OxSuWFi0iXuxbFdTSg0jaW0=
github.com/aws/aws-sdk-go v1.28.9/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down Expand Up @@ -64,7 +63,6 @@ github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2i
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
github.com/pierrec/lz4 v2.3.0+incompatible h1:CZzRn4Ut9GbUkHlQ7jqBXeZQV41ZSKWFc302ZU6lUTk=
github.com/pierrec/lz4 v2.3.0+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down Expand Up @@ -102,7 +100,6 @@ golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d h1:+R4KGOnez64A81RvjARKc4UT5/tI9ujCIVX+P5KiHuI=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b h1:ag/x1USPSsqHud38I9BAC88qdNLDHHtQ4mlgQIZPPNA=
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
12 changes: 6 additions & 6 deletions packaging/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ override_dh_auto_build:
export GOPATH=${PWD}/build
export PATH="/usr/local/go/bin:${PATH}:${GOPATH}"
export GOBINPATH="/usr/local/go/bin"
mkdir -p build/src/github.com/percona/percona-backup-mongodb
cp -r `ls | grep -v build` build/src/github.com/percona/percona-backup-mongodb/
cd build/src/github.com/percona/percona-backup-mongodb/ && make build
mkdir -p build/src/github.com/objectrocket/percona-backup-mongodb
cp -r `ls | grep -v build` build/src/github.com/objectrocket/percona-backup-mongodb/
cd build/src/github.com/objectrocket/percona-backup-mongodb/ && make build
rm -rf pbm
touch $@

override_dh_auto_install:
@echo "RULES.$@"
mkdir -p $(TMP)
mkdir -p $(TMP)/default
cd build/src/github.com/percona/percona-backup-mongodb/bin && cp pbm-agent $(TMP)/pbm-agent
cd build/src/github.com/percona/percona-backup-mongodb/bin && cp pbm $(TMP)/pbm
cd build/src/github.com/percona/percona-backup-mongodb/bin && cp pbm-speed-test $(TMP)/pbm-speed-test
cd build/src/github.com/objectrocket/percona-backup-mongodb/bin && cp pbm-agent $(TMP)/pbm-agent
cd build/src/github.com/objectrocket/percona-backup-mongodb/bin && cp pbm $(TMP)/pbm
cd build/src/github.com/objectrocket/percona-backup-mongodb/bin && cp pbm-speed-test $(TMP)/pbm-speed-test
cp -f packaging/conf/pbm-storage.conf $(TMP)/pbm-storage.conf
cp -f packaging/conf/pbm-agent.env $(TMP)/default/pbm-agent
cp -f packaging/conf/pbm-agent.service $(TMP)/pbm-agent.service
Expand Down
Loading

0 comments on commit 83bedc4

Please sign in to comment.