First time here? Check out the FAQ!

Ask Your Question
1

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

asked 13 years ago

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?

Preview: (hide)

Comments

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

kcrisman gravatar imagekcrisman ( 13 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

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.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 802 times

Last updated: Jan 31 '12