You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The *--net* parameter lets the Docker container use the host's network stack and thereby gain access to the forwarded port.
503
-
* The *pg_dump* command connects to the PostgreSQL service and creates backup files in the */app* directory, which is mapped to the current directory (*psqlbackup/*) on the Docker host with the *-v* parameter.
504
+
* The *pg_dump* command connects to the PostgreSQL service and creates backup files in the */app* directory, which is mapped to the current directory (*psqlbackup/*) on the Docker host with the *-v* parameter.
504
505
* The *--rm* parameter deletes the container after the *pg_dump* command completes execution.
505
506
506
507
**After the upgrade:**
507
508
508
509
Create an environment variable with the password for the new stateful set:
Restore the contents of the backup into the new release using the *pg_restore* tool. If this tool is not available on your system, mount the directory containing the backup files as a volume in Bitnami's PostgreSQL Docker container and use the *pg_restore* client tool in the container image to import the backup into the new cluster, as shown below:
> The above command is true for Windows and macOS, for Linux users `host.docker.internal` has to be replaced with `127.0.0.1`
586
588
587
589
Here:
588
-
* The *--net* parameter lets the Docker container use the host's network stack and thereby gain access to the forwarded port.
589
-
* The *mongodump* command connects to the MongoDB service and creates backup files in the */app* directory, which is mapped to the current directory (*mongobackup/*) on the Docker host with the *-v* parameter.
590
+
* The *--net* parameter lets the Docker container use the host's network stack and thereby gain access to the forwarded port.
591
+
* The *mongodump* command connects to the MongoDB service and creates backup files in the */app* directory, which is mapped to the current directory (*mongobackup/*) on the Docker host with the *-v* parameter.
590
592
* The *--rm* parameter deletes the container after the *mongodump* command completes execution.
591
593
592
594
**After the upgrade:**
593
595
594
596
1. Create an environment variable with the password for the new stateful set:
1. Restore the contents of the backup into the new release using the `mongorestore` tool.
604
606
If this tool is not available on your system, mount the directory containing the backup files as a volume in Bitnami's MongoDB Docker container and use the `mongorestore` client tool in the container image to import the backup into the new cluster, as shown below:
0 commit comments