tachtler:gitlab_archlinux_-_restore
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:gitlab_archlinux_-_restore [2024/03/23 17:26] – [GitLab: Restore-Befehl] klaus | tachtler:gitlab_archlinux_-_restore [2024/03/23 18:24] (aktuell) – [GitLab: Dienste/Daemons starten] klaus | ||
---|---|---|---|
Zeile 90: | Zeile 90: | ||
:!: **ACHTUNG** - **Hier ist die vom Backup-Befehl erstellte Datei zu berücksichtigen!** | :!: **ACHTUNG** - **Hier ist die vom Backup-Befehl erstellte Datei zu berücksichtigen!** | ||
+ | |||
+ | Damit alle Daten wiederhergestellt werden, ist es jedoch erforderlich, | ||
+ | * **'' | ||
+ | läuft, was mit nachfolgendem Befehl realisiert werden kann: | ||
+ | < | ||
+ | # systemctl start gitlab-gitaly.service | ||
+ | </ | ||
+ | |||
+ | :!: **ACHTUNG** - **Der Dienst/ | ||
Mit nachfolgendem Befehl **__muss__ zwingend** in das Verzeichnis ''/ | Mit nachfolgendem Befehl **__muss__ zwingend** in das Verzeichnis ''/ | ||
Zeile 100: | Zeile 109: | ||
# sudo -u gitlab $(cat environment | xargs) bundle exec rake gitlab: | # sudo -u gitlab $(cat environment | xargs) bundle exec rake gitlab: | ||
</ | </ | ||
+ | |||
+ | :!: **ACHTUNG** - | ||
+ | * **__keine__ Angabe des Pfades zur Sicherungsdatei** | ||
+ | * **__keine__ Angabe von '' | ||
< | < | ||
# sudo -u gitlab $(cat environment | xargs) bundle exec rake gitlab: | # sudo -u gitlab $(cat environment | xargs) bundle exec rake gitlab: | ||
- | 2024-03-23 16:18:43 +0100 -- Unpacking backup ... | + | 2024-03-23 16:27:29 +0100 -- Unpacking backup ... |
- | 2024-03-23 16:18:43 +0100 -- Unpacking backup ... done | + | 2024-03-23 16:27:29 +0100 -- Unpacking backup ... done |
- | 2024-03-23 16:18:43 +0100 -- Restoring database ... | + | 2024-03-23 16:27:29 +0100 -- Restoring database ... |
- | 2024-03-23 16:18:43 +0100 -- Be sure to stop Puma, Sidekiq, and any other process that | + | 2024-03-23 16:27:29 +0100 -- Be sure to stop Puma, Sidekiq, and any other process that |
connects to the database before proceeding. For Omnibus | connects to the database before proceeding. For Omnibus | ||
installs, see the following link for more information: | installs, see the following link for more information: | ||
Zeile 118: | Zeile 131: | ||
Do you want to continue (yes/no)? yes | Do you want to continue (yes/no)? yes | ||
Removing all tables. Press `Ctrl-C` within 5 seconds to abort | Removing all tables. Press `Ctrl-C` within 5 seconds to abort | ||
- | 2024-03-23 16:19:10 +0100 -- Cleaning the database ... | + | 2024-03-23 16:27:39 +0100 -- Cleaning the database ... |
- | 2024-03-23 16:19:13 +0100 -- done | + | 2024-03-23 16:27:41 +0100 -- done |
Restoring PostgreSQL database gitlabhq_production ... SET | Restoring PostgreSQL database gitlabhq_production ... SET | ||
SET | SET | ||
Zeile 196: | Zeile 209: | ||
[DONE] | [DONE] | ||
Source backup for the database ci doesn' | Source backup for the database ci doesn' | ||
- | 2024-03-23 16:19:27 +0100 -- Restoring database ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring database ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring repositories ... | + | 2024-03-23 16:27:55 +0100 -- Restoring repositories ... |
- | {" | + | 2024-03-23 16:27:55 +0100 -- Restoring repositories ... done |
- | {" | + | 2024-03-23 16:27:55 +0100 -- Restoring uploads ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring repositories ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring uploads ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring uploads ... | + | 2024-03-23 16:27:55 +0100 -- Restoring builds ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring uploads ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring builds ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring builds ... | + | 2024-03-23 16:27:55 +0100 -- Restoring artifacts ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring builds ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring artifacts ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring artifacts ... | + | 2024-03-23 16:27:55 +0100 -- Restoring pages ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring artifacts ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring pages ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring pages ... | + | 2024-03-23 16:27:55 +0100 -- Restoring lfs objects ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring pages ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring lfs objects ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring lfs objects ... | + | 2024-03-23 16:27:55 +0100 -- Restoring terraform states ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring lfs objects ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring terraform states ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring terraform states ... | + | 2024-03-23 16:27:55 +0100 -- Restoring packages ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring terraform states ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring packages ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring packages ... | + | 2024-03-23 16:27:55 +0100 -- Restoring ci secure files ... |
- | 2024-03-23 16:19:27 +0100 -- Restoring packages ... done | + | 2024-03-23 16:27:55 +0100 -- Restoring ci secure files ... done |
- | 2024-03-23 16:19:27 +0100 -- Restoring ci secure files ... | + | |
- | 2024-03-23 16:19:27 +0100 -- Restoring ci secure files ... done | + | |
This task will now rebuild the authorized_keys file. | This task will now rebuild the authorized_keys file. | ||
You will lose any data stored in the authorized_keys file. | You will lose any data stored in the authorized_keys file. | ||
Do you want to continue (yes/no)? yes | Do you want to continue (yes/no)? yes | ||
- | 2024-03-23 16:19:38 +0100 -- Deleting tar staging files ... | + | 2024-03-23 16:28:04 +0100 -- Deleting tar staging files ... |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Cleaning up / | + | 2024-03-23 16:28:04 +0100 -- Cleaning up / |
- | 2024-03-23 16:19:38 +0100 -- Deleting tar staging files ... done | + | 2024-03-23 16:28:04 +0100 -- Deleting tar staging files ... done |
- | 2024-03-23 16:19:38 +0100 -- Deleting backups/tmp ... | + | 2024-03-23 16:28:04 +0100 -- Deleting backups/tmp ... |
- | 2024-03-23 16:19:38 +0100 -- Deleting backups/tmp ... done | + | 2024-03-23 16:28:04 +0100 -- Deleting backups/tmp ... done |
- | 2024-03-23 16:19:38 +0100 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data | + | 2024-03-23 16:28:04 +0100 -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data |
and are not included in this backup. You will need to restore these files manually. | and are not included in this backup. You will need to restore these files manually. | ||
- | 2024-03-23 16:19:38 +0100 -- Restore task is done. | + | 2024-03-23 16:28:04 +0100 -- Restore task is done. |
- | 2024-03-23 16:19:38 +0100 -- Deleting backup and restore PID file ... done | + | 2024-03-23 16:28:04 +0100 -- Deleting backup and restore PID file ... done |
</ | </ | ||
+ | :!: **HINWEIS** - **Die nachfolgende Warnung, kann __ignoriert__ werden, da dies nur für eine __Omnibus__ Installation relevant ist!** | ||
+ | * < | ||
+ | and are not included in this backup. You will need to restore these files manually.</ | ||
+ | |||
+ | ===== GitLab: Dienste/ | ||
+ | |||
+ | Mit nachfolgendem Befehl wird [[https:// | ||
+ | |||
+ | Dieser **systemd**-Start beinhaltet auch den Start alle anderen benötigten Komponenten bzw. Dienste/ | ||
+ | |||
+ | < | ||
+ | # systemctl start gitlab.target | ||
+ | </ | ||
+ | |||
+ | Eine Überprüfung, | ||
+ | < | ||
+ | ● gitlab.target - GitLab - Self Hosted Git Management | ||
+ | | ||
+ | | ||
+ | |||
+ | Mar 22 09:34:35 server systemd[1]: Reached target GitLab - Self Hosted Git Management. | ||
+ | </ | ||
tachtler/gitlab_archlinux_-_restore.1711211167.txt.gz · Zuletzt geändert: 2024/03/23 17:26 von klaus