deploy-to_vserver-001.sh 1.15 KB
Newer Older
1
2
3
#!/bin/bash

# Synchronize this directory with the target on vserver-001.ecsec.de.
4
# Exclude the dev files and rename the corresponding files on the server.
5
6
rsync -av --delete --progress \
	--exclude 'docker-compose.yml' \
7
8
	--exclude 'poseidas/config/POSeIDAS.xml' \
	--exclude 'poseidas/db/poseidas.mv.db' \
9
	--exclude 'deploy-to_*.sh' \
10
11
12
13
	--exclude '*.dodeploy' \
	--exclude '*.dodeploy' \
	./ reqesidta@vserver-001.ecsec.de:/home/reqesidta/docker/

14
15
16
ssh reqesidta@vserver-001.ecsec.de "mv /home/reqesidta/docker/docker-compose_vserver-001.yml /home/reqesidta/docker/docker-compose.yml"
ssh reqesidta@vserver-001.ecsec.de "mv /home/reqesidta/docker/poseidas/config/POSeIDAS_vserver-001.xml /home/reqesidta/docker/poseidas/config/POSeIDAS.xml"
ssh reqesidta@vserver-001.ecsec.de "mv /home/reqesidta/docker/poseidas/db/poseidas_vserver-001.mv.db /home/reqesidta/docker/poseidas/db/poseidas.mv.db"
17
ssh reqesidta@vserver-001.ecsec.de "mv /home/reqesidta/docker/ssa/config/ssa-server_vserver-001.conf /home/reqesidta/docker/ssa/config/ssa-server.conf"
18

19
20
# Restart / re-build the services
ssh reqesidta@vserver-001.ecsec.de "cd /home/reqesidta/docker && docker-compose up -d --build"