backupFilePrefixForm = (req) =>
  new Form({
    action: "/admin/set-backup-prefix",
    onChange: `saveAndContinue(this);`,
    noSubmitButton: true,
    fields: [
      {
        type: "String",
        label: req.__("Backup file prefix"),
        name: "backup_file_prefix",
        sublabel: req.__("Backup file prefix"),
        default: "sc-backup-",
      },
      {
        type: "Bool",
        label: req.__("History"),
        name: "backup_history",
        sublabel: req.__("Include table history in backup"),
        default: true,
      },
      {
        type: "Bool",
        label: req.__("Include Event Logs"),
        sublabel: req.__("Backup with event logs"),
        name: "backup_with_event_log",
      },
      {
        type: "Bool",
        label: req.__("Use system zip"),
        sublabel: req.__(
          "Recommended. Executable <code>zip</code> must be installed"
        ),
        name: "backup_with_system_zip",
      },
      {
        type: "Integer",
        label: req.__("Zip compression level"),
        sublabel: req.__("1=Fast, larger file, 9=Slow, smaller files"),
        name: "backup_system_zip_level",
        attributes: {
          min: 1,
          max: 9,
        },
        showIf: {
          backup_with_system_zip: true,
        },
      },
    ],
  })
Set Backup File Prefix Form
@param req
@returns {Form}