support for volume locations

This commit is contained in:
2021-04-15 21:55:35 +02:00
parent da6d9c53aa
commit 6449b8999f
3 changed files with 136 additions and 45 deletions

View File

@@ -50,7 +50,7 @@ func init() {
restoreCmd.Flags().BoolP("force", "f", false, "Force, target folder will be overwritten")
restoreCmd.Flags().String("from", "", "Which backend to use")
restoreCmd.Flags().String("to", "", "Where to restore the data")
restoreCmd.MarkFlagRequired("to")
// restoreCmd.MarkFlagRequired("to")
restoreCmd.Flags().StringP("location", "l", "", "Location to be restored")
restoreCmd.MarkFlagRequired("location")
}