I have generated a large number of figures and saved them in a folder on the data science server. How can I download them all at once without having to download the files one by one?
Ideally one would use rsync command to download or upload large number of files between a remote server and a local machine. However, in the event when proper permissions to perform rsync command is not available, one could first zip the files and then download the resulting zipped file. The process to do so is as follows:
- Open a terminal in the notebook server (while on the tab “Files” on the Jupyter notebook, in the top right corner of the page click on “new” and select “Terminal”).
- Change directory (cd) to the folder where_your_files_are.
- Use command “zip -r myfigures *” to zip all the files in that folder.
- Go back to notebook server view and look for your zip file, then right-click download.
rsync requires ssh access and is not available on the DS servers, second approach is recommended for now