PepsiCo Backup Validation - smk7375/backup GitHub Wiki
We are performing backups for the PepsiCo environments using an Azure DevOps pipeline, which is defined in the pepco-devops-pipeline.yaml
file. The pipeline utilizes an agent hosted on Jump Server 35.
Backups are performed for three environments:
- Development (dev)
- Production (prod)
- Pre-production (preprod)
Each environment has its own configuration file that stores variables specific to that environment.
The following backups are taken for each environment:
- Cognos DB2 Backup
- Velero Backup
- PAW Backup
To validate the Cognos DB2 Backup (which includes both the DB2 online backup and DB2 config backup) for any environment (dev, prod, or preprod), follow these steps:
- Login to the Jump Server 35.
-
Login to the agent machine as the user
iacsadm11
. - Navigate to the working directory (
pepco-backup
):- Path:
/data/iacsadm11-azdevops-agent/1/s/pepco-backup
- Path:
- Open the host file for the relevant environment (dev, prod, or preprod) to get the details of the Cognos server.
-
Login to the Cognos server using the SSH command:
ssh <Cognos_Server_IP>
- Navigate to the backup location for the DB2 Online Backup:
- Path:
/data/DB2/online-backup-db2
- Path:
- Navigate to the backup location for the DB2 Config Backup:
- Path:
/data/DB2/backup-conf
- Path:
- Verify that both the online and config backups have been successfully created.
To validate the Velero Backup for any environment (dev, prod, or preprod), follow these steps:
-
Login to the Jump Server 35.
-
Login to the agent machine as the user
iacsadm11
. -
Login to the OpenShift cluster of the specific environment using the following command:
oc login --server=https://<ocserver-url>:<port> -u <username> -p <password>
- Replace
<ocserver-url>
with the OpenShift server URL of the environment. - Replace
<port>
with the appropriate port number (e.g.,6443
). - Replace
<username>
and<password>
with the correct credentials for the environment.
- Replace
-
List Velero Backups for the specific environment using the following command:
velero get backup
- Verify that Velero backups for the specific environment have been successfully created.
To validate the PAW Backup for any environment (dev, prod, or preprod), follow these steps:
-
Login to the Jump Server 35.
-
Login to the agent machine as the user
iacsadm11
. -
Login to the OpenShift cluster of the specific environment using the following command:
oc login --server=https://<ocserver-url>:<port> -u <username> -p <password>
-
Navigate to the backup location for the PAW backup:
- Path:
/data/backup
- Path:
- Go to any folder of the environment to list the successfully created PAW backups and open the generated backup to see the details of the backup.
- Verify that PAW backups for the specific environment have been successfully created.
Each environment (dev, prod, preprod) has specific backups that need validation. Ensure that all steps outlined above are completed for each environment to guarantee the success of the backup and restore processes.