Backup creation not possible when using different docker containers for NC and DB
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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