Skip to content

Restore nextcloud cnpg backup#114

Closed
Simon-Boyer wants to merge 2 commits intomainfrom
restore-backup
Closed

Restore nextcloud cnpg backup#114
Simon-Boyer wants to merge 2 commits intomainfrom
restore-backup

Conversation

@Simon-Boyer
Copy link
Contributor

@Simon-Boyer Simon-Boyer commented Mar 1, 2026

What it does

  • Add recovery backup for cnpg nextcloud.
  • Sets nextcloud replicas to 0 for db init

How to use

  1. Once merged, make sure argo for nextcloud synced and there is now 0 nextcloud replicas
  2. Manually delete the cnpg cluster, it needs to be recreated from scratch using the new bootstrap backup config
  3. Connecting to cnpg on the nextcloud database, run this command to make sure restore was successful:
SELECT
  (SELECT count(*) FROM oc_users)       AS users,
  (SELECT count(*) FROM oc_appconfig)   AS appconfig,
  (SELECT count(*) FROM oc_storages)    AS storages,
  (SELECT count(*) FROM oc_filecache)   AS filecache;
  1. Revert this PR & sync argo

@Simon-Boyer
Copy link
Contributor Author

looks like it was fine, no restore required

@Simon-Boyer Simon-Boyer closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant