IMSAdminBase2::BackupWithPasswd

The BackupWithPasswd method backs up the metabase to a backup file. The backup is encrypted with a specified password instead of with the machine key.

HRESULT BackupWithPasswd(
      LPCWSTR pszMDBackupLocation,
      DWORD dwMDVersion,
      DWORD dwMDFlags,
      LPCWSTR pszPasswd
);

Parameters

  • pszMDBackupLocation
    [in] A string of up to 100 characters (ADMINDATA_MAX_NAME_LEN) that specifies the backup location. The storage mechanism will be determined by IIS. If an empty string is specified, the backup will be stored in the default location.

  • dwMDVersion
    [in] Specifies the version number to be assigned to the backup. Must be less than or equal to MD_BACKUP_MAX_VERSION. Can be set to one of the following values.

    Value

    Meaning

    MD_BACKUP_HIGHEST_VERSION

    Overwrite the highest existing backup version in the specified backup location.

    MD_BACKUP_NEXT_VERSION

    Use the next backup version number available in the specified backup location.

  • dwMDFlags
    [in] One or more of the following flags.

    Value

    Meaning

    MD_BACKUP_HIGHEST_VERSION

    Overwrite the highest existing backup version in the specified backup location.

    MD_BACKUP_NEXT_VERSION

    Use the next backup version number available in the specified backup location.

  • pszPasswd
    [in] Unencrypted valid password.

Requirements

Client: Requires or Windows XP Professional.

Server: Requires or Windows Server 2003.

Product: IIS

Header: Declared in iadmw.h; include iiscnfg.h.