Ask Your Question
0

How to migrate user accounts to new Sage notebook server?

asked 2013-01-08 11:35:38 +0100

jonathan gravatar image

updated 2015-01-23 21:45:49 +0100

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.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2013-01-08 23:38:27 +0100

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.

edit flag offensive delete link more
0

answered 2013-01-14 12:48:09 +0100

jonathan gravatar image

updated 2013-01-14 12:49:07 +0100

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

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

Stats

Asked: 2013-01-08 11:35:38 +0100

Seen: 591 times

Last updated: Jan 14 '13