nebari
nebari copied to clipboard
[ENH] - Backup and restore conda environments
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
- This will allow us to do backups before new deploys.
- It will save the state from accidental deletes.
Anything else?
No response
Backing up the NFS share of the conda environments should work for now.
Closing in favor of #2518