mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-24 09:56:29 +00:00
feat: allow repo url to be set from env with ${RESTIC_REPOSITORY} (#813)
This commit is contained in:
@@ -73,7 +73,7 @@ func NewRepoOrchestrator(config *v1.Config, repoConfig *v1.Repo, resticPath stri
|
||||
opts = append(opts, restic.WithFlags("-o", "sftp.args=-oBatchMode=yes"))
|
||||
}
|
||||
|
||||
repo := restic.NewRepo(resticPath, repoConfig.GetUri(), opts...)
|
||||
repo := restic.NewRepo(resticPath, ExpandEnv(repoConfig.GetUri()), opts...)
|
||||
|
||||
return &RepoOrchestrator{
|
||||
config: config,
|
||||
|
||||
Reference in New Issue
Block a user