Running pg_dump with strapi

ppsirius
HOBBY

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?

Solved

3 Replies

5 months ago

Hello,

You would need to download pg_dump to use locally.


Status changed to Awaiting User Response railway[bot] 5 months ago


ppsirius
HOBBY

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 -

https://railway.com/template/I4zGrH


Status changed to Awaiting User Response railway[bot] 5 months ago


Status changed to Solved brody 5 months ago


Running pg_dump with strapi - Railway Help Station