Moving files from server to another

51 views
Skip to first unread message

Jori Mantysalo

unread,
Sep 7, 2012, 9:18:25 AM9/7/12
to sage-n...@googlegroups.com
How can root copy worksheets to new server? It seems that only copying
.../sage_notebook.sagenb/home/username is not enought, there is somewhere
some cache file.

--
Jori Mᅵntysalo

Jason Grout

unread,
Sep 7, 2012, 11:02:01 AM9/7/12
to sage-n...@googlegroups.com
On 9/7/12 8:18 AM, Jori Mantysalo wrote:
> How can root copy worksheets to new server? It seems that only copying
> .../sage_notebook.sagenb/home/username is not enought, there is
> somewhere some cache file.
>

You can log in and click "Download all active worksheets". That will
give you a zip file. You can upload that zip file to the new server and
you worksheets will appear.

Copying that /home/username directory should be enough if you have an
account already set up (i.e., if you already have myuser set up at the
new server, then copying worksheet directories into the
sage_notebook.sagenb/home/myuser directory should make the worksheets
appear (IIRC).

Thanks,

Jason

Jori Mantysalo

unread,
Sep 7, 2012, 11:39:36 AM9/7/12
to sage-n...@googlegroups.com
On Fri, 7 Sep 2012, Jason Grout wrote:

>> How can root copy worksheets to new server? It seems that only copying
>> .../sage_notebook.sagenb/home/username is not enought, there is
>> somewhere some cache file.

> You can log in and click "Download all active worksheets". That will give
> you a zip file. You can upload that zip file to the new server and you
> worksheets will appear.

Yep, but I can't do that to all accounts.

> Copying that /home/username directory should be enough if you have an account
> already set up (i.e., if you already have myuser set up at the new server,
> then copying worksheet directories into the sage_notebook.sagenb/home/myuser
> directory should make the worksheets appear (IIRC).

I tried this. NB still shows list of old worksheets (if there was any), so
there must be cache file or TableOfContents file or something like that
somewhere.

Also, I am trying to copy from 4.7 to 5.0.1.

We don't have that many users there yet. Anyway, in future Sage must
support some kind of administration, somehow -- from command line or with
GUI.

--
Jori M�ntysalo

Jason Grout

unread,
Sep 7, 2012, 11:46:41 AM9/7/12
to sage-n...@googlegroups.com
On 9/7/12 10:39 AM, Jori Mantysalo wrote:
> On Fri, 7 Sep 2012, Jason Grout wrote:
>
>>> How can root copy worksheets to new server? It seems that only copying
>>> .../sage_notebook.sagenb/home/username is not enought, there is
>>> somewhere some cache file.
>
>> You can log in and click "Download all active worksheets". That will
>> give you a zip file. You can upload that zip file to the new server
>> and you worksheets will appear.
>
> Yep, but I can't do that to all accounts.
>
>> Copying that /home/username directory should be enough if you have an
>> account already set up (i.e., if you already have myuser set up at the
>> new server, then copying worksheet directories into the
>> sage_notebook.sagenb/home/myuser directory should make the worksheets
>> appear (IIRC).
>
> I tried this. NB still shows list of old worksheets (if there was any),
> so there must be cache file or TableOfContents file or something like
> that somewhere.
>
> Also, I am trying to copy from 4.7 to 5.0.1.
>

I just checked, and there doesn't appear to be a cache in the *new*
notebook (version 5.2 or later). I don't remember if the old notebook
had some sort of cache (pre-5.2).


> We don't have that many users there yet. Anyway, in future Sage must
> support some kind of administration, somehow -- from command line or
> with GUI.

+1. Patches are welcome, of course!

Thanks,

Jason


Jason Grout

unread,
Sep 7, 2012, 11:50:15 AM9/7/12
to sage-n...@googlegroups.com
On 9/7/12 10:46 AM, Jason Grout wrote:
>> We don't have that many users there yet. Anyway, in future Sage must
>> support some kind of administration, somehow -- from command line or
>> with GUI.
>
> +1. Patches are welcome, of course!

I should mention that there are many things you can do within python to
manipulate the new notebook. I don't know if it easily supports
migrating worksheets (i.e., one command), but it does support creating
users, etc. The low-level commands are all there for migrating worksheets.

In fact, all (almost?) of the low-level functions in the notebook are
implemented as python classes and functions, so in theory it would be
very straightforward to hook those functions up to a gui or make some
commands that encapsulate the low-level operations.

Thanks,

Jason

Jori Mantysalo

unread,
Sep 11, 2012, 2:38:31 AM9/11/12
to sage-n...@googlegroups.com
On Fri, 7 Sep 2012, Jason Grout wrote:

> I should mention that there are many things you can do within python to
> manipulate the new notebook. I don't know if it easily supports migrating
> worksheets (i.e., one command), but it does support creating users, etc.

...and a simple example of that is ____. They are documented in ____.
(Please fill in gaps :=) )

--
Jori M�ntysalo

Jason Grout

unread,
Sep 11, 2012, 4:22:22 AM9/11/12
to sage-n...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages