Difference between revisions of "Backup and Restore Loop"

From PKC
Jump to navigation Jump to search
Line 9: Line 9:


=Step to deploy=
=Step to deploy=
Below are the step to perform Backup and Restore Loop from ansible agent machine.
Below are the step to perform Backup and Restore Loop from ansible agent machine. You need to install ansible on your local machine before you can execute the ansible script, please find the comprehensive methode of installing ansible on [https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html Ansible Installation]
==Get the source code==
==Get the source code==
Download the source code from github link below
Download the source code from github link below

Revision as of 08:24, 18 March 2022

PKC Automatic Backup and Restore Process is a series of command executed on backup-source server and backup-target server. The target of the process loop is to ensure there are always a backup data that can be easily restored into target server. Below is the schematic diagram on how the process is executed.

Backup-restore

Introduction

Configuration process is done by ansible script, that is executed from ansible host. Below are the outline of deployment process in general

  1. Get the source code; From github to your local machine. The source code will contain all necessary ansible script to execute the deployment process.
  2. Adjust the configuration; Adjust configuration on your local machine to define the backup-and-restore loop
  3. Execute Backup Process; Execute backup installation
  4. Execute Restore Process; Execute restore installation

Step to deploy

Below are the step to perform Backup and Restore Loop from ansible agent machine. You need to install ansible on your local machine before you can execute the ansible script, please find the comprehensive methode of installing ansible on Ansible Installation

Get the source code

Download the source code from github link below

git clone https://github.com/xlp0/PKC

Adjust the configuration

The source code of PKC code is consist of below directory, there are two files that need to adjust before we cant start performing Backup-Restore-Loop. Those files are host-restore in ./resource/config; and cs-restore-remote.yml in ./resource/ansible-yml

.
└── PKC/
    └── resource/
        ├── ansible-yml
        ├── config
        └── script

Execute Backup Restore Loop Process

References