Migrating to a new server, what do I need?

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.

3 Likes

Thank you for your reply manics. I appreciate your response.

I have another couple of questions that may relate to each statement I have below:

After passing authentication, the homepage immediately exposes gradebook.db, can this be hidden? The old system did not show gradebook.db.

The only tabs visible in the old version were:

for instructors: Files, Running, Clusters and Courses

for students: Files, Running, Clusters and Assignments

Now, for instructors, there are also Formgrader and Assignments.

Is there a configuration file(s) that we can import that displays the same tabs we had before? (If so what is the name?)

It is possible we did not copy the configuration files into the proper location. Can anyone let us know the proper way we should bring those files in?

I don’t use nbgrader, but does the doc on configuring it help?

1 Like