Ask Your Question

How do I merge users and data from two notebook servers?

asked 2012-01-17 00:10:40 -0500

pang gravatar image

So I have one old notebook server running in my office with some 20 users and there's the new server from the department in the server room, more powerful and maintained by someone that will stay in this university for many years:

Can I merge the users and data from the old notebook server into the new one, so that I can turn the old one off?

edit retag flag offensive close merge delete


I'd be very interested in this answer, esp. with the flask nb.

kcrisman gravatar imagekcrisman ( 2012-01-17 04:16:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2012-01-31 03:37:30 -0500

pang gravatar image

Apparently, this works:

  1. Copy each user folder from old_server_nbfiles/home into new_server_nbfiles/home. You have to decide which admin folder you keep, or maybe download all the old_server's admin worksheets and upload them into the new_server admin account. Similarly, solve the problem manually if there are different users in both servers with the same name. This might involve sending an email or who knows.
  2. Load into a sage console the users.pickle file in the nbfiles.sagenb folder from both the old and the new server. This is a list with one entry per user. Merge both lists, but beware the admin account and the users in both servers with the same name. Your choices now should be compatible with the ones you made before. Use pickle.dump to save the new users.pickle that will go into the new_server nbfiles.sagenb folder.

The above was done while the servers were not running. It was one real server and a sample one. If I get more problems with the two real world servers, I'll post them here.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-01-17 00:10:40 -0500

Seen: 125 times

Last updated: Jan 31 '12