{
    "type": "panel",
    "label": "FTP",
    "items": {
        "_checkConfig": {
            // this component is not visible in the UI
            // it checks the configuration
            "type": "custom",
            "i18n": true,
            "url": "custom/customComponents.js",
            "name": "ConfigCustomBackItUpSet/Components/CheckAllConfigInvisible"
        },
        "_header": {
            "type": "header",
            "size": 2,
            "text": "FTP",
            "sm": 12,
        },
        "ftpHost": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "host",
            "help": "IP address or hostname",
            "newLine": true
        },
        "ftpPort": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 1,
            "max": 65535,
            "type": "number",
            "label": "Port"
        },
        "ftpUser": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Username",
            "newLine": true
        },
        "ftpPassword": {
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "password",
            "visible": true,
            "label": "Password",
        },
        "ftpDeleteOldBackup": {
            "type": "checkbox",
            "label": "Delete old FTP-Backups",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "ftpSecure": {
            "type": "checkbox",
            "label": "Secure FTP connection (explicit TLS)",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
        },
        "ftpDeleteAfter": {
            "newLine": true,
            "hidden": "!data.ftpDeleteOldBackup || !data.advancedDelete",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "min": 1,
            "max": 100,
            "type": "number",
            "label": "piece",
            "help": "Delete old ioBroker backups with the exception of the last X pieces"
        },
        "ftpOwnDir": {
            "type": "checkbox",
            "label": "Extra path for backup types",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "newLine": true
        },
        "ftpSignedCertificates": {
            "hidden": "!data.ftpSecure",
            "type": "checkbox",
            "label": "Allow only signed certificates",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
        },
        "ftpMinimalDir": {
            "hidden": "!data.ftpOwnDir",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Path for ioBroker backup",
            "newLine": true
        },
        "ftpCcuDir": {
            "hidden": "!data.ftpOwnDir",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Path for CCU backup",
        },
        "ftpDir": {
            "hidden": "data.ftpOwnDir",
            "xs": 12,
            "sm": 9,
            "md": 6,
            "lg": 4,
            "type": "text",
            "label": "Path",
            "newLine": true
        },
    }
}
