Skip to content

Commit

Permalink
Enable pipefail and update restore yamls (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipta Das authored and tamalsaha committed Apr 19, 2019
1 parent ba94ee7 commit b40b5d7
Show file tree
Hide file tree
Showing 38 changed files with 104 additions and 3,171 deletions.
3 changes: 1 addition & 2 deletions docs/examples/mongo/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ spec:
kind: AppBinding
name: mgo-quickstart
rules:
- hosts:
- host-0
- snapshots: [latest]
3 changes: 1 addition & 2 deletions docs/examples/mysql/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ spec:
kind: AppBinding
name: mysql-quickstart
rules:
- hosts:
- host-0
- snapshots: [latest]
3 changes: 1 addition & 2 deletions docs/examples/pg/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ spec:
kind: AppBinding
name: quick-postgres
rules:
- hosts:
- host-0
- snapshots: [latest]
3 changes: 1 addition & 2 deletions docs/examples/pvc/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ spec:
name: test-pvc-dest
mountPath: /etc/target
rules:
- hosts:
- host-0
- snapshots: [latest]
paths:
- /etc/target/dir-01
- /etc/target/dir-02
3 changes: 1 addition & 2 deletions docs/examples/pvc/restore_error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
name: test-pvc-dest
mountPath: /etc/target
rules:
- hosts:
- host-0
- snapshots: [latest]
paths:
- /etc/target/unknown-path
3 changes: 1 addition & 2 deletions docs/examples/rest/restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ spec:
- name: mount-01
mountPath: /etc/target
rules:
- hosts:
- host-0
- snapshots: [latest]
paths:
- /etc/target/dir-01
- /etc/target/dir-02
13 changes: 4 additions & 9 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/restic/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (w *ResticWrapper) restore(path, host, snapshotID, destination string) ([]b
func (w *ResticWrapper) dump(dumpOptions DumpOptions) ([]byte, error) {
log.Infoln("Dumping backed up data")

args := []interface{}{"dump"}
args := []interface{}{"dump", "--quiet"}
if dumpOptions.Snapshot != "" {
args = append(args, dumpOptions.Snapshot)
} else {
Expand Down
2 changes: 2 additions & 0 deletions pkg/restic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func NewResticWrapper(options SetupOptions) (*ResticWrapper, error) {
}
wrapper.sh.SetDir(wrapper.config.ScratchDir)
wrapper.sh.ShowCMD = true
wrapper.sh.PipeFail = true
wrapper.sh.PipeStdErrors = true

// Setup restic environments
err := wrapper.setupEnv()
Expand Down
21 changes: 0 additions & 21 deletions vendor/github.com/Sirupsen/logrus/LICENSE

This file was deleted.

Loading

0 comments on commit b40b5d7

Please sign in to comment.