Marcb (discussió | contribucions)
Cap resum de modificació
Marcb (discussió | contribucions)
Cap resum de modificació
Línia 19: Línia 19:
The Artifactory service exposes its web interface on '''port 8103'''. A full system backup can be done via the service's API. Backup settings need to be [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystemSettingsExample retrieved] and sent back via [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystem POST], as explained in the official guide. Similarly, to restore the system, [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ImportSystemSettingsExample retrieve] the restoration settings and send them back via [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FullSystemImport POST], as shown in Artifactory's API guide. The current backup script will save the copy inside the container's <code>/tmp/backup</code> folder, and sync it with the host <code>/srv/data/artifactory</code>. Logs can be found on <code>/opt/jfrog/artifactory/logs</code> and are linked to the host's <code>/srv/log/artifactory</code> folder.
The Artifactory service exposes its web interface on '''port 8103'''. A full system backup can be done via the service's API. Backup settings need to be [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystemSettingsExample retrieved] and sent back via [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ExportSystem POST], as explained in the official guide. Similarly, to restore the system, [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ImportSystemSettingsExample retrieve] the restoration settings and send them back via [https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-FullSystemImport POST], as shown in Artifactory's API guide. The current backup script will save the copy inside the container's <code>/tmp/backup</code> folder, and sync it with the host <code>/srv/data/artifactory</code>. Logs can be found on <code>/opt/jfrog/artifactory/logs</code> and are linked to the host's <code>/srv/log/artifactory</code> folder.


<source lang="bash">bash ./artifactory/backup.sh</source>
<pre>bash ./artifactory/backup.sh</pre>
== Gitlab ==
== Gitlab ==


The Gitlab service exposes its web interface on '''port 8101''', and also '''port 22''' for Git's SSH operations. Backup information can be found in their [https://docs.gitlab.com/ce/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system official guide], mainly done by the service's backup creation Rake task. Configuration files should also be copied along, these include <code>/etc/gitlab/gitlab.rb</code>, <code>/etc/gitlab/gitlab-secrets.json</code> and <code>/var/opt/gitlab/config/secrets.yml</code>, as shown in the [https://docs.gitlab.com/ce/raketasks/backup_restore.html#storing-configuration-files same guide]. To restore the service follow the commands described in the [https://docs.gitlab.com/ce/raketasks/backup_restore.html#restore restoration section]. The current backup script will save the copy in the container's <code>/var/opt/gitlab</code> folder, and sync it with the host's <code>/srv/data/gitlab/data</code>. Logs can be found on <code>/var/log/gitlab</code> and are linked to the host's <code>/srv/log/gitlab</code> folder.
The Gitlab service exposes its web interface on '''port 8101''', and also '''port 22''' for Git's SSH operations. Backup information can be found in their [https://docs.gitlab.com/ce/raketasks/backup_restore.html#creating-a-backup-of-the-gitlab-system official guide], mainly done by the service's backup creation Rake task. Configuration files should also be copied along, these include <code>/etc/gitlab/gitlab.rb</code>, <code>/etc/gitlab/gitlab-secrets.json</code> and <code>/var/opt/gitlab/config/secrets.yml</code>, as shown in the [https://docs.gitlab.com/ce/raketasks/backup_restore.html#storing-configuration-files same guide]. To restore the service follow the commands described in the [https://docs.gitlab.com/ce/raketasks/backup_restore.html#restore restoration section]. The current backup script will save the copy in the container's <code>/var/opt/gitlab</code> folder, and sync it with the host's <code>/srv/data/gitlab/data</code>. Logs can be found on <code>/var/log/gitlab</code> and are linked to the host's <code>/srv/log/gitlab</code> folder.


<source lang="bash">bash ./gitlab/backup.sh</source>
<pre>bash ./gitlab/backup.sh</pre>
== Jenkins ==
== Jenkins ==


Línia 33: Línia 33:
The Jira service exposes its web interface on '''port 8102'''. According to the information present in their [https://confluence.atlassian.com/adminjiraserver/backing-up-data-938847673.html official guide], the current backup script will save the dump inside the host's <code>/srv/data/jira/db</code> folder. Its home folder can be found at the container's <code>/opt/jira</code> and is mapped to the host's <code>/srv/data/jira/data</code> folder. Logs can be found on <code>/opt/jira/log</code> and are linked to the host's <code>/srv/log/jira</code> folder.
The Jira service exposes its web interface on '''port 8102'''. According to the information present in their [https://confluence.atlassian.com/adminjiraserver/backing-up-data-938847673.html official guide], the current backup script will save the dump inside the host's <code>/srv/data/jira/db</code> folder. Its home folder can be found at the container's <code>/opt/jira</code> and is mapped to the host's <code>/srv/data/jira/data</code> folder. Logs can be found on <code>/opt/jira/log</code> and are linked to the host's <code>/srv/log/jira</code> folder.


<source lang="bash">bash ./jira/backup.sh</source>
<pre>bash ./jira/backup.sh</pre>


-----
-----

Revisió del 14:06, 21 març 2018

tinki-team

To install and run the stack, execute docker-compose up -d from the project folder. In a similar fashion, use docker-compose down to halt the services. To backup the whole stack use the backup-all.sh script.

ssh user@fedora-atomic.cadt.com -p 2222
cd /home/tinki-team
docker-compose up -d
bash ./backup-all.sh

Inside the container server, the stack should be located at /home/tinki-team holding a docker-compose.yml manifest with the following services:

Artifactory

The Artifactory service exposes its web interface on port 8103. A full system backup can be done via the service's API. Backup settings need to be retrieved and sent back via POST, as explained in the official guide. Similarly, to restore the system, retrieve the restoration settings and send them back via POST, as shown in Artifactory's API guide. The current backup script will save the copy inside the container's /tmp/backup folder, and sync it with the host /srv/data/artifactory. Logs can be found on /opt/jfrog/artifactory/logs and are linked to the host's /srv/log/artifactory folder.

bash ./artifactory/backup.sh

Gitlab

The Gitlab service exposes its web interface on port 8101, and also port 22 for Git's SSH operations. Backup information can be found in their official guide, mainly done by the service's backup creation Rake task. Configuration files should also be copied along, these include /etc/gitlab/gitlab.rb, /etc/gitlab/gitlab-secrets.json and /var/opt/gitlab/config/secrets.yml, as shown in the same guide. To restore the service follow the commands described in the restoration section. The current backup script will save the copy in the container's /var/opt/gitlab folder, and sync it with the host's /srv/data/gitlab/data. Logs can be found on /var/log/gitlab and are linked to the host's /srv/log/gitlab folder.

bash ./gitlab/backup.sh

Jenkins

The Jenkins service exposes its web interface on port 8080. Jenkins is fairly simple to backup and there is no script, simply copy the /var/jenkins_home folder into the desired location. Restoration is done by replacing the target folder with the backup. Jenkins home folder is synced with the host's /srv/data/jenkins location. Logs can be found on /var/jenkins_home/logs and are linked to the host's /srv/log/jenkins folder. General information can be found in the official administration guide.

Jira

The Jira service exposes its web interface on port 8102. According to the information present in their official guide, the current backup script will save the dump inside the host's /srv/data/jira/db folder. Its home folder can be found at the container's /opt/jira and is mapped to the host's /srv/data/jira/data folder. Logs can be found on /opt/jira/log and are linked to the host's /srv/log/jira folder.

bash ./jira/backup.sh

References

Pàgines a la categoria «Tinki»

Aquesta categoria només conté la pàgina següent.