# Todo: Skip container related question in native mode. maybe via groups? https://click.palletsprojects.com/en/8.0.x/commands/#nested-handling-and-contexts
help="If we should search for pods, to be backed up, in all namespaces. When used `--namespace` will be ignored.",
)
defbackup_kubernetes(namespace,all_namespaces):
@click.option(
"--target-dir",
"-d",
type=str,
default=None,
help=f"Where to store the backups. Will default to '{ValidLabels.backup_dir.val}'",
)
@click.option(
"--exclude-namespace-from-path",
"-e",
default=False,
help=f"By default the kubernetes namespace of a database workload will be included in the backup path to prevent name collisions. Attach this flag to prevent this and have a flatter directory structure, if you are sure your workloads have uniqe names over all namespaces. Alternatively set the label '{str(ValidLabels.backup_dir)}' on a per workload base",
info="A single name or multiple names seperated by commata(','). Only databases with matching names will be backed up. If empty all databases will be backed up ",
info="Relative or absolute path to store the backups. Usally you can ignores this setting or if you have multiple database instances with databases that sharing names you have to define sub-directories to avoid interferences.",