The command exited with code 0. Output: root 59689 0.0 0.4 610328 48700 pts/4 Ssl+ 18:50 0:00 node -e require("dotenv").config(); const { exec } = require("child_process"); const fs = require("fs"); exec("pg_dump \"" + process.env.DATABASE_URL + "\" | gzip -1 > full_dump.sql.gz && ls -lh full_dump.sql.gz", (err, stdout, stderr) => { console.log(stdout, stderr); if (fs.existsSync("full_dump.sql.gz")) fs.unlinkSync("full_dump.sql.gz"); }); root 59699 0.0 0.0 2812 1964 pts/4 S+ 18:50 0:00 /bin/sh -c pg_dump "postgresql://aadharbot:aadharbot123@127.0.0.1:5432/aadharbot" | gzip -1 > full_dump.sql.gz && ls -lh full_dump.sql.gz root 59727 0.0 0.0 4332 3176 pts/5 Ss+ 18:51 0:00 bash -c ps aux | grep full_dump root 59729 0.0 0.0 3536 1844 pts/5 S+ 18:51 0:00 grep full_dump