As a user in a class that runs Jupyter notebooks for assignments, I have access to the assignments via the web interface. I assume the assignments are stored somewhere in my personal space on the server, and so I should be able to download them. How can I download all files that are in my personal user space? (e.g., wget
)
Here's the path structure:
https://urltoserver/user/username
There are several directories: assignments, data, etc.
https://urltoserver/user/username/assignments
https://urltoserver/user/username/data
...
I want to download all the folders (recursively). Just enough that I can launch whatever I see online locally. If there are some forbidden folders, then ok, skip those and download the rest.
Please specify the command exactly as I couldn't figure it out myself (I tried wget
)
Try running this as separate cell in one of your notebooks:
!tar chvfz notebook.tar.gz *
If you want to cover more folders up the tree, write ../
before the *
for every step up the directory. The file notebook.tar.gz will be saved in the same folder as your notebook.