nextcloud / nextcloud/server

Automatically make a backup of the `config.php` file

Open
#36,599 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: settings
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

My config.php file recently got completely wiped somehow and now I have to start over. I don't know for sure what caused it but I installed a backup app shortly before it happened. Regardless of whether it was user error on my part or something external like an app, I think it would be a good idea that a file this important be automatically backed up, eg something like config.old.php. I'm not an expert but KeePassXC does this with its password database and I'm sure other programs do the same so I think this would be a relatively simple task to do.

Thanks in advance for your attention.

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 locating how config.php is created, written, and updated in the Nextcloud server. Define the backup timing, naming, retention, and recovery behavior before identifying suitable tests; done means the behavior is specified and covered without risking configuration or secret exposure.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.