Back Up the Application Tier

With OCI in place, you can back your middle tiers up to region-local object storage.
There are three basic types of file systems in the middle tiers:
  • Shared homes, which hold the application code used by the middle tiers to run the application. These directories change when the application is patched or upgraded.
  • Configuration files, which are fairly static but can change occasionally during system operation.
  • Report repository, which changes frequently and reflects state also held in the database.

Back Up Shared Homes

Since all compute instances share access to a single copy of the application home directories, you must take one backup to protect the resource. Take this backup each time the software is updated. It is also best practice to schedule a backup of this resource on a regular basis.

  1. Log in to a compute instance hosting the application or web tier as a psadm2 user.
  2. Use TAR to back up the pt subdirectory.
    For example,
    $ cd /u01/app/psft
    $ time tar -zcvf PSFT_HMC92_APP_20230403.tgz pt | tee -atar_PSFT_HCM92_APP_20230403.log
  3. When the TAR command has completed, upload the tarfile and the log file to object storage
    $ time oci os object put -ns Tenancy name -bucket-name PSFT_APP_TIER_BACKUPS_20230403 -file PSFT_HCM92_APP_20230403.tgz
    $ time oci os object put -ns Tenancy name -bucket-name PSFT_APP_TIER_BACKUPS_20230403 -file tar_PSFT_HCM92_APP_20230403.log
    
  4. Log in to the OCI Console and verify the backups were successfully uploaded to OCI Object Storage.

Back Up PeopleSoft Configuration Files

As PeopleSoft middle tier configurations are node-specific, you will need to back up each instance’s PS_CFG_HOME now, to save the work you’ve completed installing the application in OCI. You should also schedule a backup of this resource on a regular basis, as you may adjust these configurations during normal operations.

Perform the following steps to take a manual backup, on each middle tier compute instance:

  1. Log in to a compute instance as a psadm2 user.
  2. Zip up PS_CFG_HOME.
    For example,
    $ zip -r backup_ps_cfg_home_instance name_date.zip $PS_CFG_HOME
  3. Upload the zip file to Object Storage.
    $ oci os object put -ns Tenancy name -bucket-name PSFT_APP_TIER_BACKUPS_20230403 -file backup_ps_cfg_home_instance name_date.zip
  4. Log in to the OCI Console and verify the backups were successfully uploaded to OCI Object Storage.

Back Up the Report Repository

The report repository changes constantly as the system is in operation. The report repository is shared by all compute instances and you'll want to back up the report repository contents daily.

Later, you'll configure frequent replication of the report repository contents to the DR site so that on switchover or failover the data there is as current as possible.

  1. To take a manual backup, perform the following steps, substituting today’s date for YYYYMMDD:
    1. Log in to a compute instance hosting the application or web tier as a psadm2 user.
    2. Use TAR to back up the report repository subdirectory.
      For example,
      $ cd /u02/app/psft/ps/report_repository
      $ time tar -zcvf PSFT_HMC92_REPORTS_BACKUPS_YYYYMMDD.tgz pt | tee -a  tar_PSFT_HCM92_REPORTS_BACKUPS_YYYYMMDD.log
    3. When the TAR command has completed, upload the tarfile and the log file to OCI Object Storage.
      $ time oci os object put -ns Tenancy name -bucket-name PSFT_REPORTS_BACKUPS_YYYYMMDD -file PSFT_HCM92_REPORTS_BACKUPS_YYYYMMDD.tgz
      $ time oci os object put -ns Tenancy name -bucket-name PSFT_REPORTS_BACKUPS_YYYYMMDD -file tar_PSFT_HCM92_REPORTS_BACKUPS_YYYYMMDD.log
    4. Log in to the OCI Console and verify the backups were successfully uploaded to OCI Object Storage.
  2. To automate backups of the report repository once a day at 02:00 a.m., perform the following steps:
    1. Create a script that contains the TAR and OCI CLI commands called psft_reports_backup.sh located in your custom script directory:
      #!/bin/bash
      CURRENT_DATE=$( date +"%d-%b-%Y_%T" )
      
      # Create the TAR backup file
      cd /u02/app/psft/ps/report_repository
      time tar -zcvf PSFT_HMC92_REPORTS_BACKUPS_${CURRENT_DATE}.tgz out | tee -a  tar_PSFT_HCM92_REPORTS_BACKUPS_${CURRENT_DATE}.log
      
      # Upload the files.
      time oci os object put -ns Tenancy name -bucket-name PSFT_REPORTS_BACKUPS -file PSFT_HCM92_REPORTS_BACKUPS_${CURRENT_DATE}.tgz
      
      time oci os object put -ns Tenancy name -bucket-name PSFT_REPORTS_BACKUPS -file tar_PSFT_HCM92_REPORTS_BACKUPS_${CURRENT_DATE}.log
    2. As root, add an entry into /etc/crontab that will run the above script as psadm2 at 02:00 a.m. each night:
      0  2  *  * *   psadm2  script directory/psft_reports_backup.sh