How I can force a snapshot?

Issue

How I can force to make a snapshot.

Environment

  • CloudBees Jenkins Enterprise (CJE)
  • Amazon Web Services (AWS)

Resolution

You have to enter into the TENANT_ID and call a REST service, TENANT_ID is either ‘cjoc’ or the ‘domain’ of the master (the url part that makes it unique, either the subdomain, or the context path if the cluster uses path_mode=yes)

cje run ssh-into-tenant TENANT_ID
curl -fsSL -ivN -H "Content-type: application/json" \
        -X POST \
        --data \
          "{\
            \"containerId\" : \"${MESOS_CONTAINER_NAME}\", \
            \"account\" : \"${TENANT}\", \
            \"signature\" : \"${SIGNATURE}\", \
            \"disk\" : ${DISK:-2} \
          }" \
        $VOLUME_SERVICE/backup

Then you have to wait for the EC2 snapshot to finish.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.