nebari icon indicating copy to clipboard operation
nebari copied to clipboard

[ENH] - Backup and restore conda environments

Open pt247 opened this issue 1 year ago • 1 comments

Feature description

The conda environments NFS file share doesn't need to be snapshotted as they can be created with conda-lock files (the feature is WIP in conda-store). The only thing that needs to be backed up is the conda store's Postgres db, which has all the information about the state that can be recreated.

Interface

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

Location

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

Implementation

TBC

Value and/or benefit

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

Anything else?

No response

pt247 avatar Mar 07 '24 11:03 pt247

Backing up the NFS share of the conda environments should work for now.

pt247 avatar Mar 19 '24 16:03 pt247

Closing in favor of #2518

pt247 avatar Jun 18 '24 21:06 pt247