mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
handle config properly
This commit is contained in:
parent
7d422481a8
commit
5db483883d
1 changed files with 3 additions and 2 deletions
|
@ -23,10 +23,11 @@ func restPath(url *url.URL, t backend.Type, name string) string {
|
|||
if !strings.HasSuffix(ept, "/") {
|
||||
ept += "/"
|
||||
}
|
||||
if t == backend.Config {
|
||||
return ept + backend.Paths.Config
|
||||
}
|
||||
var dir string
|
||||
switch t {
|
||||
case backend.Config:
|
||||
dir = backend.Paths.Config
|
||||
case backend.Data:
|
||||
dir = backend.Paths.Data
|
||||
case backend.Snapshot:
|
||||
|
|
Loading…
Add table
Reference in a new issue