Skip to content

Commit

Permalink
added type of backup (full/incremental) for lsbackup (#7426)
Browse files Browse the repository at this point in the history
* added type of backup (full/incremental) for lsbackup
  • Loading branch information
OmarAyo authored Feb 19, 2021
1 parent 612cc57 commit b3e416e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions ee/backup/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ package backup
import (
"context"
"fmt"
"google.golang.org/grpc/credentials"
"os"
"time"

"google.golang.org/grpc/credentials"

"github.com/dgraph-io/dgraph/ee/enc"
"github.com/dgraph-io/dgraph/protos/pb"
"github.com/dgraph-io/dgraph/worker"
Expand All @@ -37,13 +38,13 @@ var LsBackup x.SubCommand
var ExportBackup x.SubCommand

var opt struct {
backupId string
location string
pdir string
zero string
key x.SensitiveByteSlice
forceZero bool
format string
backupId string
location string
pdir string
zero string
key x.SensitiveByteSlice
forceZero bool
format string
}

func init() {
Expand Down Expand Up @@ -255,9 +256,9 @@ func runLsbackupCmd() error {
return errors.Wrapf(err, "while listing manifests")
}

fmt.Printf("Name\tSince\tGroups\tEncrypted\n")
fmt.Printf("Name\tSince\tGroups\tEncrypted\tType\n")
for path, manifest := range manifests {
fmt.Printf("%v\t%v\t%v\t%v\n", path, manifest.Since, manifest.Groups, manifest.Encrypted)
fmt.Printf("%v\t%v\t%v\t%v\t%v\n", path, manifest.Since, manifest.Groups, manifest.Encrypted, manifest.Type)
}

return nil
Expand Down

0 comments on commit b3e416e

Please sign in to comment.