Both sides previous revisionPrevious revisionNext revision | Previous revision |
linux:service:ftp [2021/01/13 12:49] – [File Transfer Protocol] deul | linux:service:ftp [2022/05/27 08:34] (current) – venemans |
---|
However, we have created a more secure form of sharing your science data with your collaborators through an ''https'' based WEB service. So you can still easily share your public data with others. It works as follows: | However, we have created a more secure form of sharing your science data with your collaborators through an ''https'' based WEB service. So you can still easily share your public data with others. It works as follows: |
| |
You create (or already have it) a directory in the public NFS share ''/disks/ftphome/pub'', e.g. ''ED_science_data'', and you put the files you want to share in this directory. Make sure the files are world readable (use the command line tool: ''chmod 666 <filename>''). | You create (or already have it) a directory in the public NFS share ''/disks/ftphome/pub'', e.g. ''ED_science_data'', and you put the files you want to share in this directory. Make sure the files are world readable (use the command line tool: ''chmod 644 <filename>''). If you created subdirectories, then these must be world readable and executable (using the command: ''chmod 755 <directory>''). |
| |
Now you tell your collaborator(s) to get the files from the URL: ''https://ftp.strw.leidenuniv.nl/ED_science_data''. When they open this URL they get a directory listing with the file contents. | Now you tell your collaborator(s) to get the files from the URL: ''https://ftp.strw.leidenuniv.nl/ED_science_data''. When they open this URL they get a directory listing with the file contents. |
wget https://ftp.strw.leidenuniv.nl/ED_science_data/READ.ME | wget https://ftp.strw.leidenuniv.nl/ED_science_data/READ.ME |
| |
to download that file. ''wget'' has nice additional functionality, e.g. you can download the full directory content (and subdirectories) in one go by using: | But ''wget'' has nice additional functionality, e.g. you can download the full directory content (and subdirectories) in one go by using: |
wget -r https://ftp.strw.leidenuniv.nl/ED_science_data | wget -r https://ftp.strw.leidenuniv.nl/ED_science_data |
This last command will also download the required additional files to 'allow showing' the WEB page, but those can be easily weeded out. | This last command will also download the required additional files to 'allow showing' the WEB page, but those can be easily weeded out. |
| |