Update Docker backup commands in security-tuning.md and upgrading.md

This commit is contained in:
Théophile Diot 2024-04-17 17:27:54 +02:00
parent 319b30bc44
commit 10caca83ee
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
2 changed files with 24 additions and 8 deletions

View file

@ -725,7 +725,11 @@ You can also specify a custom directory for the backup by providing the `BACKUP_
=== "Docker"
```bash
docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory -v /path/to/backup/directory:/path/to/backup/directory <scheduler_container> bwcli plugin backup save
docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory <scheduler_container> bwcli plugin backup save
```
```bash
docker cp <scheduler_container>:/path/to/backup/directory /path/to/backup/directory
```
!!! note "Specifications for MariaDB/MySQL"
@ -791,7 +795,11 @@ You can also specify a custom backup file for the restore by providing the path
=== "Docker"
```bash
docker exec -it -v /path/to/backup/file:/path/to/backup/file <scheduler_container> bwcli plugin backup restore /path/to/backup/file
docker cp /path/to/backup/file <scheduler_container>:/path/to/backup/file
```
```bash
docker exec -it <scheduler_container> bwcli plugin backup restore /path/to/backup/file
```
!!! example "In case of failure"
@ -807,5 +815,9 @@ You can also specify a custom backup file for the restore by providing the path
=== "Docker"
```bash
docker exec -it -e BACKUP_DIRECTORY=/var/tmp/bunkerweb/backups -v /var/tmp/bunkerweb/backups:/var/tmp/bunkerweb/backups <scheduler_container> bwcli plugin backup restore
docker cp <scheduler_container>:/var/tmp/bunkerweb/backups /var/tmp/bunkerweb/backups
```
```bash
docker exec -it -e BACKUP_DIRECTORY=/var/tmp/bunkerweb/backups <scheduler_container> bwcli plugin backup restore
```

View file

@ -17,7 +17,11 @@
=== "Docker"
```bash
docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory -v /path/to/backup/directory:/path/to/backup/directory <scheduler_container> bwcli plugin backup save
docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory <scheduler_container> bwcli plugin backup save
```
```bash
docker cp <scheduler_container>:/path/to/backup/directory /path/to/backup/directory
```
=== "Linux"
@ -47,13 +51,13 @@
=== "PostgreSQL"
1. **Install the PostgreSQL repository configuration package**
4. **Install the PostgreSQL repository configuration package**
```bash
dnf install "https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-$(uname -m)/pgdg-redhat-repo-latest.noarch.rpm"
```
2. **Install the PostgreSQL client**
5. **Install the PostgreSQL client**
```bash
dnf install postgresql<version>
@ -145,13 +149,13 @@
=== "Linux"
1. **Stop the services**:
3. **Stop the services**:
```bash
systemctl stop bunkerweb-scheduler
systemctl stop bunkerweb-ui
```
2. **Update BunkerWeb**:
4. **Update BunkerWeb**:
- Update BunkerWeb to the latest version by following the instructions in the [integration Linux page](integrations.md#linux).