Skip to content

mokamr/restore-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Restore Scripts

Viya 4 Restore scripts intended to automate the restore process for Viya.

These scripts assume that the backup archive files have already been moved into the sas-common-backup and sas-cas-backup-data PV directories/locations on the new Viya environment.

Requirements

To execute the in-place-restore.sh script, ensure the following requirements are met:

  1. Ensure kubectl or oc CLIs have been installed on the location where the scripts are ran from
  2. The Viya PV filesystem, containing the sas-common-backup-data-pvc and sas-cas-backup-data-pvc directories, must be mounted at the location where the in-place-restore.sh script will be executed from.

To execute cas-pv-cleanup-restore.sh, ensure the following requirements are met:

  1. Access to the $DEPLOY directory holding the sas-bases content
  2. jq installed

Usage

  1. First, execute in-place-restore.sh

    • Provide the Viya 4 Namespace in the output
    • Provide the path to where Viya PVs are stored i.e., /viya-share/pvs
    • The script will find the latest backup ID stored in the Viya backup PVs, confirm if this is the correct backup ID to be used.
      • If selected no, provide your desired backup ID to restore.
      • If you are restoring Viya from one environment to another, select No as the option and provide the backup ID that was copied over to the new environment's backup PV location. (The backup ID archive selected must be present under sas-common-backup-data-pvc and sas-cas-backup-data-pvc PVs)
    • Provide the name you desire to call the restore job
  2. Second, execute the cas-pv-cleanup-restore.sh script

    • Provide the Viya 4 Namespace in the output
    • Provide the path to the parent directory where sas-bases is located i.e., /home/ubuntu/viya-deployment-directory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages