nextcloud / nextcloud/backup

Backup creation not possible when using different docker containers for NC and DB

Open
#175 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am using Nextcloud 23 with Backup App and Postgresql in different docker containers. So the Nextcloud Backup app has no access to the container Postgresql and can't run pg_dump:
In SqlDumpPgSQL.php line 80: The dump process failed with exitcode 127 : Command not found : sh: 1: pg_dump: not found

Is it possible to resove this issue and keep seperated containers for NC and DB?
If not please give us a hint in the documentation and in the webinterface (Error only visible using occ backup:point:create)

Maybe you could add a setting to ignore SQL Backup so i can dump SQL DB manually.
Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing occ backup:point:create with Nextcloud and PostgreSQL in separate containers, then inspect SqlDumpPgSQL.php around line 80 and the web-interface error path. Determine whether the backup can support this layout; done means backup creation works, or the limitation, manual SQL option, and relevant error are documented and surfaced clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php, postgresql
Domain
databases, devops, documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.