diff --git a/docs/security-tuning.md b/docs/security-tuning.md index 5f9c62cb1..ea6438813 100644 --- a/docs/security-tuning.md +++ b/docs/security-tuning.md @@ -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 bwcli plugin backup save + docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory bwcli plugin backup save + ``` + + ```bash + docker cp :/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 bwcli plugin backup restore /path/to/backup/file + docker cp /path/to/backup/file :/path/to/backup/file + ``` + + ```bash + docker exec -it 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 bwcli plugin backup restore + docker cp :/var/tmp/bunkerweb/backups /var/tmp/bunkerweb/backups + ``` + + ```bash + docker exec -it -e BACKUP_DIRECTORY=/var/tmp/bunkerweb/backups bwcli plugin backup restore ``` diff --git a/docs/upgrading.md b/docs/upgrading.md index 6682c8d3e..24f7b4d15 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -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 bwcli plugin backup save + docker exec -it -e BACKUP_DIRECTORY=/path/to/backup/directory bwcli plugin backup save + ``` + + ```bash + docker cp :/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 @@ -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).