Anonomous FTP access to data

   Experimental data can be transfered to computers outside the APS firewall via the XSD anonymous ftp server.  In sectors 4 & 6, the MMG group runs a script that automatically makes a copy of all user experimental data to this server every 15 minutes ( :00, :15, :30, :45). The data is placed in a directory called "/pub/sector#/*id*", where "#" is either "4" or "6", and "*" is either "b", "c" or "d" depending on the beamline/station. This not only provides access to your data but also creates a backup copy in case a file is deleted.

To retrieve the data using an FTP program ( or a web browser) follow these steps

Step 1: Zip up data directory (optional)
If a user prefers to download all their data as one file, create a zip archive of it by using the command:
zip -r <filename> <dirname>
This will create a file called “filename.zip” that contains everything in the directory "dirname". This file is compatible with PCs, so the end user can unpack using a PC also (double click on file in windows). On UNIX systems including Mac OSX (and DOS?) you unpack it by typing "unzip filename"

Step 2: Copy file to XOR FTP server (optional)

If you can't wait 15 minutes for the file to be copied over you can use the following command to copy your file over to the ftp sever.

cp filename.zip /home/ftp/pub/sector4 (6)

You could also copy over an entire directory if you did not do step 1, using the following command

cp –R dirname /home/ftp/pub/sector4 (6)

 

Step 3: Retrieve the file
Using an ftp program:

1. Connect to ftp.xray.aps.anl.gov (use "ftp" rather than "sftp")
2. When it prompts you for a user type “anonymous” and use your e-mail as a password
3. Change to directory "pub/sector4” or "pub/sector6".
4. If did not do step 2 above change directory such as “4idd/2012_3” (same as data directory)
5. Retireve files from sever using "get" command.

Using a web browser:

1. Put the following URL in the top of your web browser "ftp://ftp.xray.aps.anl.gov/pub/sector4" or"... pub/sector6"
2. Change directory into where data is located i.e. "4idd/2012_3/mydata
3. Click on file to download onto your computer.



Posted by: Jonathan Lang ( lang@aps.anl.gov)
Content by: Jonathan Lang ( lang@aps.anl.gov)