Data Backup, Archival, and Restore
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Data Backup, Archival, and Restore

  • Dark
    Light
  • PDF

This section describes a backup and restore strategy for DNIF. These descriptions represent general good practices for conserving the capability of recovering in case of disaster.

Prerequisites

The following details are required to configure Backup, archival, and restore

  • Cluster ID
  • Core IP Address
  • System private IP address
  • User Email ID and Password for authentication (Security Engineer)
  • Directory Path (mounted directory to store archive/backup data)

Backup and Archive Process

Backup is the process of copying data and storing it at a particular destination so that it can be restored on demand.

Archival is the process of deleting data from a particular destination and creating a new repository so that it can be restored on demand.

Steps to Backup and Archive Data

  • Execute the following command to grant permissions
chmod +x /DNIF-BAR
  • Execute the following command to initiate backup and archive configuration.
./DNIF-BAR
  • Provide the following details
Field Description
Cluster Id Enter the Cluster ID
Core IP Address Enter the IP address of Core
System private IP address Enter the System private IP address
Authentication Enter the details of the Email ID and Password of the user (Security Engineer) for authentication
Directory Path Enter the mounted directory path to store archive/backup data

image.png

  • A yml file will be created on path /etc/dnif-bar, open the config.yml file and make the required changes.

Yml Configuration

archive:
  older_than: 2 days
  streams:
  - "*"
backup:
  older_than: 3 days
  streams:
  - "*"
Field Description
Archive
  • older_than: Used to specify the age of data that should be archived.
  • streams: Used to specify the streams to be archived. You can also enter string Asterisk ("*") which means all the streams will be archived
  • Backup
  • older_than: Used to specify the age of data to backup.
  • streams: Used to specify the streams to backup. You can also enter string Asterisk ("*") which means all the streams will be archived to take a backup of all the streams
  • By default, cron will be set for every one hour to backup and archive.

    Restore

    Recovery is the process of restoring data that has been lost or deleted

    Steps to Restore Data

    The file /etc/dnif-bar/runner.py file should be used to restore.

    • Execute the following command to initiate data restoration.
    /etc/dnif-bar/runner.py -rst (--RESTORE)
    
    • Provide the following details
    Field Description
    Scope_id Enter the scope id for which you want to initiate the restoration process.
    Stream Enter the stream name to be restored
    Day (format yyyymmdd) Enter the date in the specified format, the date for which the data should be restored
    From archive/backup Specify the source from where you want to restore (archive/backup)

    Reconfigure Backup and Archive Process

    The following are the steps to reconfigure backup and archive process

    • The file /etc/dnif-bar/runner.py file should be used for reconfigurations.

    • Execute the following command to initiate reconfiguration.

    /etc/dnif-bar/runner.py -rc (--RECONFIGURE)
    
    • Provide the following details
    Field Description
    Cluster ID Enter the Cluster ID
    Core IP Address Enter the IP address of Core
    Authentication Enter the email id and password of the user (Security Engineer) for authentication

    The directory path cannot be reconfigured


    Was this article helpful?