def METHOD_NAME(name: str, dir: str = BACKUP_PATH, structure: bool = True, data: bool = False):
    """Backup db content to files."""
    if name:
        from flexmeasures.data.scripts.data_gen import save_tables
        save_tables(app.db, name, structure=structure, data=data, backup_path=dir)
    else:
        click.secho(
            "You must specify a unique name for the backup: --name <unique name>",
            **MsgStyle.ERROR,
        )