vault backup: 2023-01-12 21:07:26

This commit is contained in:
Paul Trowbridge 2023-01-12 21:07:26 -05:00
parent e4b55280ee
commit 79ca688241
3 changed files with 46 additions and 49 deletions

View File

@ -4,18 +4,15 @@
"type": "split",
"children": [
{
"id": "8842c89178654d5e",
"id": "bd3048da7ced7906",
"type": "tabs",
"children": [
{
"id": "ea1bfb1f125294a3",
"id": "6971c1675e1bdbb9",
"type": "leaf",
"state": {
"type": "diff-view",
"state": {
"file": "logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md",
"staged": true
}
"type": "empty",
"state": {}
}
}
]
@ -150,17 +147,17 @@
"command-palette:Open command palette": false
}
},
"active": "ea1bfb1f125294a3",
"active": "6971c1675e1bdbb9",
"lastOpenFiles": [
"pages/Contents.md",
"pghero.md",
"pgbdager.md",
"postgres.md",
"journals/2023_01_12.md",
"journals/2023_01_09.md",
"apache.md",
"auth.md",
"sql_server/error_handling.sql",
"2023-01-09.md",
"visidata.md",
"webmin.md",
"wekan.md",
"telnet.md"
"2023-01-09.md"
]
}

View File

@ -1,5 +1,5 @@
creates a file `out.html` by default
sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02*
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log"
creates a file `out.html` by default
sudo pgbadger --prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h,remote=%r ' //var/log/postgresql/postgresql-2020-02*
"C:\PostgreSQL\perl5\perl\bin\perl.exe" "C:\PostgreSQL\pgbadger\pgbadger" -o "C:\Users\ptrowbridge\Downloads\pgb.html" "C:\PostgreSQL\data\logs\pg10\postgresql-Mon.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Tue.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Wed.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Thu.log" "C:\PostgreSQL\data\logs\pg10\postgresql-Fri.log"

View File

@ -1,32 +1,32 @@
https://github.com/ankane/pghero/blob/master/guides/Linux.md
get:
```
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/pghero.list \
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
sudo apt-get update
sudo apt-get -y install pghero
```
Add your database. (use \ to escape special passw chars)
```
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
```
And optional authentication.
```
sudo pghero config:set PGHERO_USERNAME=link
sudo pghero config:set PGHERO_PASSWORD=hyrule
```
Start the server
```
sudo pghero config:set PORT=3001
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
sudo pghero scale web=1
```
Confirm its running with:
https://github.com/ankane/pghero/blob/master/guides/Linux.md
get:
```
wget -qO- https://dl.packager.io/srv/pghero/pghero/key | sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/pghero.list \
https://dl.packager.io/srv/pghero/pghero/master/installer/ubuntu/18.04.repo
sudo apt-get update
sudo apt-get -y install pghero
```
Add your database. (use \ to escape special passw chars)
```
sudo pghero config:set DATABASE_URL=postgres://user:password@hostname:5432/dbname
```
And optional authentication.
```
sudo pghero config:set PGHERO_USERNAME=link
sudo pghero config:set PGHERO_PASSWORD=hyrule
```
Start the server
```
sudo pghero config:set PORT=3001
sudo pghero config:set RAILS_LOG_TO_STDOUT=disabled
sudo pghero scale web=1
```
Confirm its running with:
`curl -v http://localhost:3001/`