Skip to main content

Jama Connect User Guide

Back up tenant assets to a TAR file in KOTS

If Jama Connect was deployed to KOTS and you want to move your assets to EFS, you must first back up tenant assets to a Tape Archive file (TAR) in KOTS.

Important

You must have a core-0 pod running, unless you have horizontal scaling enabled for jamacore, then a core-ingress-0 pod is running.

To back up tenant assets:

  1. Set an environment variable with your tenant name:

    export TENANT_NAME=jama
  2. Copy the assets from a core pod to an assets local directory in the KOTS node. To reduce the backup size, exclude the tempreports.

    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/attachments assets/attachments
    
    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/avatars assets/avatars
    
    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/diagrams assets/diagrams
    
    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/equations assets/equations
    
    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/reports assets/reports
    
    kubectl cp -c core default/core-0:/home/contour/tenant/${TENANT_NAME}/tempreports assets/tempreports 
    
  3. List the contents of the assets directory inside the core pod:

    kubectl exec --tty -c core pods/core-0 -- ls -la /home/contour/tenant/${TENANT_NAME}/ 
  4. Verify that the commands from step 2 included every folder and file displayed.

  5. Create a TAR file from the local directory:

    tar -zcvf assets.tar.gz assets/
  6. Copy the TAR file from the node to a different system and review its content:

    scp <user>@<ip-another-machine>:<destination-path> assets.tar.gz

You now have a backup file that includes all the assets.