Entering Backup Mode on the Forms Server

You enter backup mode to allow for hot backups of a Forms Server. When you enter backup mode, you specify the following information based on your organization’s backup procedures:

  • A unique label to identify the backup mode session that may be useful for your backup processes.
  • The time for the backup procedure to complete.
  • A flag to indicate whether to be in continuous backup mode, which is useful only if you are performing rolling backups.

Before you write applications to enter into backup mode, it is recommended that you understand the backup procedures that are used after you put the Forms Server in backup mode. For more information about what to consider when performing backups for AEM Forms, see administration help.

NOTE
For more information about the Backup and Restore service, see Services Reference for AEM Forms.

Summary of steps

To create an application that enters backup mode, perform the following steps:

  1. Include project files.
  2. Create an BackupService client object.
  3. Determine a unique label, the amount of time to perform the backup, and whether to be in continuous backup mode.
  4. Enter backup mode.
  5. (Optional) Retrieve information about the backup mode session on the server.
  6. Perform the backup of the GDS (Global Data Store) and database.

Include project files

Include necessary files in your development project. These files are important to include in your project for compiling your code properly and using the Backup and Restore Service API.

For information about the location of these files, see Including AEM Forms Java library files.

Create a BackupService Client API object

To programmatically leave backup mode, you create a BackupService client object to use the Backup and Restore Service API.

Decide upon a unique label, determine the amount of time to perform the backup, and decide whether to be in continuous backup mode

Before you enter backup mode, you should decide upon a unique label, determine the amount of time that you want to allocate to perform the backup, and decide whether you want the Forms Server to stay in backup mode. These considerations are important to integrate with the backup procedures established by your organization. (See administration help.)

Enter backup mode

Enter backup mode with the parameters that are consistent with the backup procedures at your organization.

Retrieve information about the backup mode session on the server

After you enter backup mode, you can retrieve information about the session. This information can be used to integrate with your backup procedures

Perform the backup of the GDS and database

After you successfully enter backup mode, you can perform a backup of the Global Document Storage (GDS) and the database that the Forms Server is connected to. This step is specific to your organization, since you can perform this step manually or you can run other tools to perform the backup procedure.

Enter backup mode using the Java API

Enter backup mode by using the Backup and Restore Service API:

  1. Include project files

    Include necessary client JAR files, such as adobe-backup-restore-client-sdk.jar, in your Java project’s class path. To create the Java client application, the following JAR files must be added to your project’s class path:

    • adobe-backup-restore-client-sdk.jar
    • adobe-livecycle-client.jar
    • adobe-usermanager-client.jar
    • adobe-utilities.jar (required if AEM Forms is deployed on JBoss Application Server)
    • jbossall-client.jar (required if AEM Forms is deployed on JBoss Application Server)
  2. Create a BackupService Client API object

    You use a ServiceClientFactory object and the BackupService client API object together.

    • Create a ServiceClientFactory object that contains connection properties. (See Setting connection properties.)
    • Create an BackupService object by using its constructor and passing the ServiceClientFactory object.
  3. Decide upon a unique label, determine the amount of time to perform the backup, and decide whether to be in continuous backup mode

    Decide upon a unique label, determine the amount of time that you want to allocate to perform the backup, and decide whether you want the Forms Server to stay in continuous backup mode.

  4. Enter backup mode

    Enter backup mode by invoking the enterBackupMode method with the following parameters:

    • A String value that specifies a unique human-readable label that identifies the backup mode session. It is recommended that you do not use spaces or characters that cannot be encoded into XML format.

    • An int value that specifies the number of minutes to stay in backup mode. You can specify a value from 1 to 10080 (the number of minutes in one week). This value is ignored when using continuous backup mode.

    • A Boolean value that specifies whether to be in continuous backup mode. A value of True specifies to be in continuous backup mode. When in continuous backup mode, the value you specify for the number of minutes to stay in backup mode is ignored.

      Continuous backup mode means that a new backup mode session is started after the current one is completed. A value of False means that continuous backup mode is not used and, after leaving backup mode, the purging of files from the GDS resumes.

  5. Retrieve information about the backup mode session on the server

    Retrieve information using the BackupModeEntryResult object that is returned after invoking the enterBackupMode method. The information that you can retrieve after you enter backup mode may be useful for integrating with your backup procedures. For example, the label, backup ID, and start time may be useful as input for filenames for your backup procedure.

  6. Perform the backup of the GDS and database

    Backup the Global Document Storage (GDS) and the database which your Forms Server is connected to. The actions to perform the backup are not part of the AEM Forms SDK and may even include manual steps specific to the backup procedures in your organization.

Enter backup mode using the web service API

Enter backup mode by using the web service provided by Backup and Restore Service API:

  1. Include project files

    • Create a Microsoft .NET client assembly that consumes the Backup and Restore Service API WSDL.
    • Reference the Microsoft .NET client assembly.
  2. Create a BackupService Client API object

    Using the Microsoft .NET client assembly, create a BackupServiceService object by invoking its default constructor and specify the credentials using the Credentials method.

  3. Decide upon a unique label, determine the amount of time to perform the backup, and decide whether to be in continuous backup mode

    Decide upon a unique label, determine the amount of time that you want to allocate to perform the backup, and decide whether you want the Forms Server to stay in continuous backup mode.

  4. Enter backup mode

    To enter backup mode, invoke the enterBackupMode method and pass the following values:

    • A String value that specifies a unique human-readable label that identifies the backup mode session. It is recommended that you do not use spaces or characters that cannot be encoded into XML format.

    • A Uint32 value that specifies the number of minutes to stay in backup mode. You can specify a value from 1 to 10080 (number of minutes in one week). This value is ignored when using continuous backup mode.

    • A Boolean value that specifies whether to be in continuous backup mode. A value of True specifies to be in continuous backup mode. When in continuous backup mode, the value you specify for the number of minutes to stay in backup mode is ignored. Continuous backup mode means that a new backup mode session is started after the current one is completed.

      A value of False means that continuous backup mode is not used and, after leaving backup mode, the purging of files from the GDS resumes.

  5. Retrieve information about the backup mode session on the server

    Retrieve information about the backup mode session after invoking the enterBackupMode method from the BackupModeEntryResult that is returned to verify that it was successful. The information that you can retrieve after you enter backup mode may be useful for integrating with your backup procedures. For example, the label, backup ID, and start time may be useful as input for filenames for your backup procedure.

  6. Perform the backup of the GDS and database

    Backup the Global Document Storage (GDS) and the database which your Forms Server is connected to. The actions to perform the backup are not part of the AEM Forms SDK and may even include manual steps specific to the backup procedures in your organization.

Leaving Backup Mode on the Forms Server

You leave backup mode so that the Forms Server resumes purging of files from the GDS (Global Document Storage) on the Forms Server.

Before you write applications to enter into leave mode, it is recommended that you understand the backup procedures that are used with AEM Forms. For more information about what to consider when performing backups for AEM Forms, see administration help.

NOTE
For more information about the Backup and Restore service, see Services Reference for AEM Forms.

Summary of steps

To leave backup mode, perform the following steps:

  1. Include project files.
  2. Create a BackupService client object.
  3. Leave backup mode.
  4. (Optional) Retrieve information about the backup mode session that was running on the Forms Server.

Include project files

Include all necessary files in your development project. These files are important for compiling your code properly and using the Backup and Restore Service API.

For information about the location of these files, see Including AEM Forms Java library files.

Create a BackupService Client API object

To programmatically leave backup mode, you create a BackupService client object to use the Backup and Restore Service API.

Leave backup mode

Leave backup mode to resume normal purging of files from the Global Document Storage (GDS). Before you leave backup mode, you should verify that your backup procedures have been completed.

Retrieve information about the backup mode session that ended

After you leave backup mode, you can retrieve information about the session. This information can be used to integrate with your backup procedures.

Leave backup mode using the Java API

Leave backup mode by using the Backup and Restore Service API (Java):

  1. Include project files

    Include necessary client JAR files, such as adobe-backup-restore-client-sdk.jar, in your Java project’s class path. To create Java client application, the following JAR files must be added to your project’s class path:

    • adobe-backup-restore-client-sdk.jar
    • adobe-livecycle-client.jar
    • adobe-usermanager-client.jar
    • adobe-utilities.jar (required if AEM Forms is deployed on JBoss Application Server)
    • jbossall-client.jar (required if AEM Forms is deployed on JBoss Application Server)
  2. Create a BackupService Client API object

    You use a ServiceClientFactory object and the BackupService client API object together.

    • Create a ServiceClientFactory object that contains connection properties. (See Setting connection properties.)
    • Create a BackupService object by using its constructor and passing the ServiceClientFactory object as parameter.
  3. Enter backup mode

    Leave backup mode by invoking the leaveBackupMode method.

  4. Retrieve information about the backup mode session on the server

    Retrieve information about the operation using the BackupModeResult object that is returned. The information that you can retrieve after you enter backup mode may be useful for integrating with your backup procedures. For example, the label, backup ID, and start time may be useful as input for filenames for your backup procedure.

Leave backup mode using the web service API

Leave backup mode by using the Backup and Restore Service API (web service):

  1. Include project files

    To use web services, you must make sure that you include the proxy files. Follow these steps to configure your project to use the Backup and Restore Service API as a web service.

    • Create a Microsoft .NET client assembly that consumes the Backup and Restore Service API WSDL.
    • Reference the Microsoft .NET client assembly.
  2. Create a BackupService Client API object

    Using the Microsoft .NET client assembly, create a BackupServiceService object by invoking its default constructor.

  3. Enter backup mode

    Leave backup mode by invoking the leaveBackupMode web service operation.

  4. Retrieve information about the backup mode session on the server

    Retrieve the backup mode identifier after the operation to verify that it was successful. The information that you can retrieve after you leave backup mode may be useful for integrating with your backup procedures.

Experience Manager


Espressos & Experience Manager: AEM Forms

Espressos & Experience Manager

Thursday, Mar 6, 7:00 PM UTC

Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.

Register

Elevate and Empower Teams with Agentic AI for Exceptional Experiences

Online | Strategy Keynote | General Audience

Elevate and empower your CX teams with AI that transforms creativity, personalization, and productivity. Discover how Adobe is...

Tue, Mar 18, 1:00 PM PDT (8:00 PM UTC)

Register

Rapid Feature Releases with AEM Cloud: Telegraph Media Group’s RDE Strategy

Online | Session | Intermediate

Hear how Telegraph Media Group, the award-winning publisher of The Daily Telegraph, The Sunday Telegraph, The Telegraph Magazine,...

Wed, Mar 19, 3:30 PM PDT (10:30 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more