Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #103 from kengou/master
Browse files Browse the repository at this point in the history
fix for Azure lifecycle policy
  • Loading branch information
stefanprodan authored Mar 2, 2020
2 parents 495e919 + 466f697 commit 1a21f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/backup/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import (
)

func azureUpload(file string, plan config.Plan) (string, error) {
azurefile := strings.TrimLeft(file, "!/")
upload := fmt.Sprintf("az storage blob upload -c '%v' --file '%v' --name '%v' --connection-string '%v'",
plan.Azure.ContainerName, file, file, plan.Azure.ConnectionString)
plan.Azure.ContainerName, file, azurefile, plan.Azure.ConnectionString)

result, err := sh.Command("/bin/sh", "-c", upload).SetTimeout(time.Duration(plan.Scheduler.Timeout) * time.Minute).CombinedOutput()
output := ""
Expand Down

0 comments on commit 1a21f3b

Please sign in to comment.