5 months ago
Hi
I tried to run pg_dump on my node.js (strapi cms) but i got.
```
/bin/sh: 1: pg_dump: not found
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at Pipe.<anonymous> (node:net:338:12) {
code: 127,
killed: false,
signal: null,
```
Could i run pg_dump somehow in node service?
3 Replies
Status changed to Awaiting User Response railway[bot] • 5 months ago
5 months ago
But if i what to automate this process and make dump from node env? It is possible?
Status changed to Awaiting Railway Response railway[bot] • 5 months ago
5 months ago
You can auto run pg_dump with this template -
Status changed to Awaiting User Response railway[bot] • 5 months ago
Status changed to Solved brody • 5 months ago