Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cupcakearmy/autorestic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0ca59d478f635b800222a124aead7e891ee1c346
Choose a base ref
..
head repository: cupcakearmy/autorestic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 59b2d6f70eeaa3558c0ff4325c1304d81515dd9f
Choose a head ref
Showing with 5 additions and 1 deletion.
  1. +5 −1 internal/config.go
6 changes: 5 additions & 1 deletion internal/config.go
Original file line number Diff line number Diff line change
@@ -121,7 +121,11 @@ func GetDockerVolumesLocations() (map[string]Location, error) {
volumeLocation.Options[target[0]] = make(OptionMap)
volumeLocation.Options[target[0]][target[1]] = interfaceValues
} else if strings.HasPrefix(label, "autorestic.copy.") {
volumeLocation.CopyOption[strings.TrimPrefix(label, "autorestic.copy.")] = strings.Split(value, ";")
fromBackend := strings.TrimPrefix(label, "autorestic.copy.")
if volumeLocation.CopyOption == nil {
volumeLocation.CopyOption = make(LocationCopy)
}
volumeLocation.CopyOption[fromBackend] = strings.Split(value, ";")
}
}
volumesList[volume.Name] = volumeLocation