docker exec -it yourPostgresContainerNameOrHash pg_dump -U postgres -d yourDatabaseName > ./file.sql
It will take backup file called file.sql to host machine.
take a database backup from postgresql using pg_dump in docker container
version: '2' | |
services: | |
haproxy: | |
image: haproxy:alpine | |
volumes: | |
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg | |
ports: | |
- "80:80" | |
depends_on: | |
- nginx |
Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.
Sample output:
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED
#!/bin/bash | |
################################################################################################################################## | |
# https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-20-04 | |
################################################################################################################################## | |
# Configures a full ELK stack ob Ubuntu 20.04 | |
# - Elasticsearch | |
# - Kibana | |
# - nginx |
GitLab uses Fog to communicate with various object storage services
when running backups. Fog works with S3 as well as S3-compatible services like Spaces.
The key difference is that you need to explictly set the endpoint
for non-S3 services.
If you are using the "ominbus" GitLab packages, you would need to add the following
to /etc/gitlab/gitlab.rb
:
gitlab_rails['backup_upload_connection'] = {