Previous Topic: Connect to a Local DSA Console and Dump the Data Store

Next Topic: Convert the Online Dump to an LDIF File

Schedule an Online Dump

You can schedule the CA EEM Server to generate an online dump at a specifc time or to create the online dump at regular intervals.

Note: Each dump overwrites the previous backup file. Create a cron job on UNIX or a scheduled task on Windows to copy the backed up file to a safe location before the next dump.

To schedule an online dump

  1. Stop the local DSA services using the following commands:
    Windows
    dxserver stop dsaname
    
    Linux and UNIX
    su - dsa -c "dxserver stop dsaname"
    
  2. Open the configuration file (iTechPoz-Hostname.dxc) and add the following lines:
    dump dxgrid-db period <start> <period>
    

    where

    period start period

    (Optional) Specifies that the online dump is performed at regular intervals.

    start

    Defines the number of seconds from Sunday 00:00:00 a.m. GMT.

    Note: The start time is defined using GMT and not your local time.

    period

    Defines the number of seconds between online dumps.

    Note: The start time is relative to the period and should be lower than it. If you specify a start time that is greater than the period, the actual start is start - period. For example, if the period is 3600 seconds (one hour) and start is 3610 seconds, the online dump starts 10 seconds from midnight GMT and continues every hour from then on.

  3. Save the iTechPoz-Hostname.dxc file.
  4. Start the local DSA services using the following commands:
    Windows
    dxserver start dsaname
    
    Linux and UNIX
    su - dsa -c "dxserver start dsaname"
    

Example: Perform an Online Dump Every Hour

The following command takes a snapshot copy of the datastore every hour:

dump dxgrid-db period 0 3600

Example: Perform an Online Dump Every Night

The following command takes a snapshot copy of the datastore every night at 3 a.m. in a GMT+10:00 time zone:

dump dxgrid-db period 61200 86400

In this example, the start time is the number of seconds from Sunday midnight GMT to the first 3 a.m. slot, corrected by the time zone value, as follows:

(3 am - 10 time zone + 24 hours) * 60 minutes * 60 seconds = 61,200

The 24 hour period is calculated as follows:

24 hours * 60 minutes * 60 seconds = 86,400