Taking Backup of Configurations


All configuration details for your DNIF installation is contained within configuration files.

Here’s what you need to do to back up your set of configuration files.

From host:

  • Login to host machine.
  • Go to the folder path that has Deployment-Key as its name and is mounted as volume for docker container.

    Use given tar command to create compressed backup file configBackup.tar.gz.

    $cd /dnif/<Deployment-key/
    $tar --exclude="./data/*/nodes" \
    --exclude="./log" --exclude="./updates" \
    --exclude="./UPLOADS" --exclude="./intel" \
    --exclude="./geoip" --exclude="./reports" \
    -czf backup_config-$(date +%d_%m_%Y_%H%M%S).tar.gz .
    

    In the above process, we have taken a backup of only configurations and hash-check files that can be used to restore the working image in case of a failure or rollback. In this command, we have excluded the ./data/ folder to keep the configuration set stored separately from data.

    Output snippet for tar command:

    root >cd /dnif/CfXXXXXXXXXXXXe3/
    root >pwd
    /dnif/CfXXXXXXXXXXXXe3
    root >tar --exclude="./data/*/nodes" \
    > --exclude="./log" --exclude="./updates" \
    > --exclude="./UPLOADS" --exclude="./intel" \
    > --exclude="./geoip" --exclude="./reports" \
    > -czf backup_config-$(date +%d_%m_%Y_%H%M%S).tar.gz .
    tar: .: file changed as we read it
    root >ls
    a10conf.json  backup_config-26_09_2017_161108.tar.gz  csltustat  geoip  LICENSE  master_config.json  NAvfields  ssl   SyncDevice  tool 	UPLOADS  vStores  config   csltuconfig    data   intel  log  	Metrics   reports	ssl2  thresholds  updates  vFields
    

    This command will create a configBackup.tar.gz tar file in the /dnif/<Deployment-key>/ directory.

    Now, you can move the configBackup.tar.gz file to a safer location or copy it off from the host machine for backup.