My Jupyterhub + nbgrader server was recently compromised. I would like to migrate to a new server. Does anyone have tips for making a move like this? If I have a backup of the environment (ie configuration files, db backup, home directory backup) is this enough? I still have access to the original server for reference. What is the best path to creating an exact replica of the original environment?
I am not the original creator of the environment, so right now I may not understand what files/folders are required to rebuild.
I think those are the main things to backup, though you should also check whether any user data has been stored outside the home directories. If you’re not using centralised authentication you may need to recreate your operating system users, and set permissions/UIDs/GIDs.
For an exact replica you’ll also need a list of all packages and versions (e.g. pip freeze, conda list) in all environments if you’re using them but it’s advisable to upgrade everything, especially since some package versions will be unsupported, or have security vulnerabilities.