First time here? Check out the FAQ!

Ask Your Question
0

How to migrate user accounts to new Sage notebook server?

asked 12 years ago

jonathan gravatar image

updated 10 years ago

FrédéricC gravatar image

Does anybody have a script to migrate a bunch of notebook users to a new sage notebook server...I need to replace my server hardware. I've installed Sage 5.5 on the new hardware and thought I would just move the .sage directory from my old server, but have had no luck with that. There seem to be path issues. The new server does not expect to find the user files already in __store__.

I would like to maintain passwords as well. Thus I think I need the user.pickle, but copying this also causes errors.

The server I am trying to migrate from was running 5.1, but with the Flask notebook.

I haven't yet tried the process of building all the intermediate versions and stepping through them. I also think I may have the same problem, as I am unwilling to try it in place on the server that is still working.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 12 years ago

ppurka gravatar image

As far as I know, there has been no change in the notebook format in several years. I think you should try to copy the ~/.sage directory to the ~/.sage directory in the new machine. But copy it using something that preserves symbolic links and permissions. You can use cp -a or cp -Pr or even rsync to do this.

Preview: (hide)
link
0

answered 12 years ago

jonathan gravatar image

updated 12 years ago

The files are on two servers without a shared disk space so cp will not work. Rsync might work, but the solution I found is to tar the .sage directory, which preserves the symlinks. Then I copied the .tar file to the new server. Then I untarred the file on the new server.

#on old server:
        tar -c .sage -f .sage.tar
#copy to the new server (I used sftp).
#on new server in the root of the user where sage will run:
         tar -xf .sage.tar

Thanks, Jonathan

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: 12 years ago

Seen: 634 times

Last updated: Jan 14 '13