Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] - Backup and restore user profiles #2295

Closed
pt247 opened this issue Mar 7, 2024 · 2 comments
Closed

[ENH] - Backup and restore user profiles #2295

pt247 opened this issue Mar 7, 2024 · 2 comments
Labels
area:backup-and-restore 💾 All items related to backup and restore

Comments

@pt247
Copy link
Contributor

pt247 commented Mar 7, 2024

Feature description

We want to add the ability to back up Nebari's KeyCloak store.

Interface

nebari backup user-creds --backup-location <BACKUP_LOCATION>
nebari restore user-creds --backup-location <BACKUP_LOCATION>

Location

The backup will be stored in the following format:
<BACKUP LOCATION>/<YYYY-MM-DD:HH:mm:ss>/NFS/user_data/

Implementation

We can do backup in one of 2 ways:

  1. Take a snapshot of entire database.
  2. Backup keycloak https://www.keycloak.org/server/importExport

We should do option 2, as backing up KeyClok would be the same regardless of the database used by KeyCloak.

Value and/or benefit

  1. Will allow us to do backups before new deploys.
  2. Will save the state from accidental deletes.

Anything else?

No response

@pt247 pt247 added the area:backup-and-restore 💾 All items related to backup and restore label Mar 7, 2024
@pt247 pt247 changed the title [ENH] - Backup User profiles [ENH] - Backup and restore User profiles Mar 19, 2024
@pt247 pt247 changed the title [ENH] - Backup and restore User profiles [ENH] - Backup and Restore User profiles Mar 19, 2024
@pt247 pt247 changed the title [ENH] - Backup and Restore User profiles [ENH] - Backup and restore user profiles Mar 19, 2024
@pt247
Copy link
Contributor Author

pt247 commented Mar 19, 2024

Keycloak backup and restore are implemented by the user. We can use that.

@pt247 pt247 closed this as completed Jun 18, 2024
@pt247
Copy link
Contributor Author

pt247 commented Jun 18, 2024

Closing in favor of #2518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backup-and-restore 💾 All items related to backup and restore
Projects
Development

No branches or pull requests

1 participant