Restoring deleted items from Test to Prod
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Description
A batch of item records were accidentally deleted on Prod. The items are still on Test. How can I batch copy them from Test to Prod?
(Note: Though this article describes the procedure for item records, it could be used for other records as well.)
Resolution
1. Use the file-03 Service to back up the current Production z30 (to the ./xxx50/files directory)
2. Rename each ./xxx50/files/z30_seqax.tar.gz file to ./z30_seqax.tar.gz.save (to avoid confusion with the files copied from Test in step 6 below
3. Run the file-03 Service for the z30 on Test to write the z30 records to the ./xxx50/files directory as z30_seqax.tar.gz files (Note: the file-03 Service can only back up the entire z30; there's no option to backup just certain records)
4. Take each of the ./xxx50/files/z30_seqax.tar.gz files and unzip/untar it:
> gzip -d z30_seqax.tar.gz
> tar -xvf z30_seqax.tar
5. copy the desired records from the z30_seqax into a z30_seqaa.new file
6. ftp the z30_seqaa.new file to the Prod ./xxx50/files directory and rename it to z30_seqaa
7. run the file-06 Service, specifying "Add New Record" as the "Procedure to Run"
- Article last edited: 12-Sep-2018