Page tree
Skip to end of metadata
Go to start of metadata

Url: https://wiki.nordix.org/

Server Access

ssh  $USER@91.123.202.89
sudo su - centos
ssh wiki

9th May 2022

Running Version: v7.13.3

Upgrade Version: v7.13.5

docker ps
 
NAMES               CONTAINER ID   IMAGE                                      STATUS
confluence-7.13.0   4bdfa53134ff   atlassian/confluence-server:7.13.3-jdk11   Up 6 weeks

Stop Container

docker stop confluence-7.13.0

Backup

The directory /data/atlassian is mounted as /var/atlassian/application-data/confluence in confluence docker container and contains the application data.

cd /data
tar -zcvf "atlassian-$(date '+%Y-%m-%d').tar.gz" --exclude "atlassian/backups"  atlassian

pg_dump -h localhost -p 5432 -U infra -F c -b -v -f  "postgres-$(date '+%Y-%m-%d').backup" wiki
# -F c  use custom binary format
# -b    include blobs
# -v    verbose
# -f    dump file name
# db password can be found in "/data/atlassian/confluence.cfg.xml"

Start Container

docker run \
-d \
--name="confluence-7.13.5" \
-v "/data/atlassian:/var/atlassian/application-data/confluence" \
-m 6g \
-e JVM_MAXIMUM_MEMORY=5120m \
-e CATALINA_CONNECTOR_PROXYNAME=wiki.nordix.org \
-e CATALINA_CONNECTOR_SCHEME=https \
-e CATALINA_CONNECTOR_SECURE=true \
-p 8090:8090 \
-p 8091:8091 \
--restart unless-stopped \
atlassian/confluence-server:7.13.5-jdk11

Monitoring

docker logs -f confluence-7.13.5

Rollback

docker stop confluence-7.13.5
docker start confluence-7.13.0

Cleanup

docker rm confluence-7.13.0



2 Comments

  1. Anonymous

    Looks OK to me. Should we just mention that we should do a write to conflunece as part of the monitoring ?


  2. That is looking good for me as well.

Write a comment...