## get current conda env name
CURRENT_CONDA_ENV=${CONDA_DEFAULT_ENV:-"root"}
# TODO Update conda bkup script
# use mamba instead of conda
# labels: enhancement, help wanted, ToDo
# assignees: sbamin
# milestone: rolling
BKUP_LOC="${HOME}/conda_env_bkup/sumner/${CURRENT_CONDA_ENV}/${TSTAMP}"
mkdir -p "${BKUP_LOC}"
## make output file names
BKUP_ENV=$(printf "%s_environment_%s.yml" "${CURRENT_CONDA_ENV}" "$TSTAMP")
Update conda bkup script
use mamba instead of conda
https://github.com/sbamin/code101/blob/ebf22059e55075dd65393c2546c247c362539f96/confs/hpc/user_env/bin/conda_bkup.sh#L9
0a5519b5478a7bfe3d25337d538271cbb11609e3