Refresh Aptify-TEST Environment

Created by Kevin Schmidt - HCPro, Modified on Thu, 9 Oct at 3:16 AM by Kevin Schmidt - HCPro

Aptify Admin

Refresh Aptify-TEST Environment



Locate / Generate Backups                                   

RDP into AHIMASQL-TEST

 

 

Get a copy of the PROD backup from ahimasql-01a F:\Backups\AHIMASQL-01A\APTIFY\FULL copied over to ahimasql-test F:\Transfers

 

 

Log into SSMS and connect to the AHIMASQL-TEST


Graphical user interface

Description automatically generated

Click to expand on Databases

The right-click on Aptify à Tasks à Restore à Database…

 

 

Select the radio button Restore from Device
Click the ellipsis to select the backup location

 

 

Click Add


Graphical user interface, text, application, email

Description automatically generated

Navigate to F:\Transfers

 

 

Go to Options

Select Restore with Recovery
Check Overwrite the existing database (WITH REPLACE) (only when restoring Dev or Test)
Uncheck Take tail-log backup before restore (only when restoring Dev or Test)
Check close existing connections

 

 

Click OK

The folder list will display Aptify as (Restoring... ) while the backup is running.
 In the upper right you will see a progress bar displaying the percentage of completion.

 

 

You will receive a pop up once the restore is complete.

 

Run Update Scripts

Next you must run a few sql queries to anonymize email and logins to test information so that we do not accidentally email customers from a test environment. Convert cc to dummy card numbers. Update paypal to point at the sandbox. Update Entities. The scripts can be found in:

https://ahimaorg.sharepoint.com/sites/DevITTeam/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2FDevITTeam%2FShared%20Documents%2FAptify%20and%20Enterprise%20Systems%2FDatabase%20and%20SQL%20Scripts&FolderCTID=0x01200080013CC11736164E9DCE10E99415D3AE 

The scripts will be run in the following order: 

 

  1. Sanitize-01 

  1. Sanitize-02 

  1. Sanitize-03 

  1. Sanitize-04

Update User Licenses


Login to Aptify-Test as the sa user. You can locate this login information in Secret Server (AHIMASQL-TEST – SA)


Go to User Administration à Licenses

Click on Licenses

 

In the main viewing area, go to the Licenses task bar.
 Click on the icon for Aptify License Import Wizard

Select Update Licenses to Match this Server

Click Next

Click Finish

Wait for Completion screen.

 

Final step - Follow up with the Dev team to make updates to B2C, etc.


------------------------------------------------------------------------------

------------------------------------------------------------------------------

Last run: 11/16/2022

Restore from backup (8 hours)

PostRefreshAptifyTasks (few minutes)

SanitizeCreditCardInfo (4 hours, 40 minutes)

SanitizeEMailInfo (13 minutes)

Update Aptify licenses (1 minute)


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article