Skip to content

Feature suggestion: Database backup function #17328

@sgofferj

Description

@sgofferj

Is your feature request related to a problem? Please describe.
Somewhat. With moving NC into a docker stack with prudent security settings, the host system does not really have access to the DB anymore.

Describe the solution you'd like
I suggest a database backup function which when triggered

  • Puts the system in maintenance mode
  • Freezes the DB
  • Creates a sql backup of the DB, maybe gzips it and puts it into a configurable location within the NC realm
  • Unfreezes the DB
  • Puts the system back into operating mode

Ideally, the backup could be triggered manually from the admin settings or scheduled with the schedule being configurable through the admin settings as well.

Describe alternatives you've considered
The only alternative would be to use a script on the host system which would require host system access to the DB - which would be somewhat contrary to the container philosophy, security-wise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions