Back Up

From X6AWiki

The data being collected at X6A beam line could either be FTP'd to another computer or backed up for further processing.

If you choose to go the FTP route, telnet must pass through proxies. Following are the options to backup your data.

Contents

Using Anonymous FTP

Image:Ftp.gif For users who need to transfer their data files from NSLS to their institution at a later point in time, we have setup an anonymous FTP site. This feature allows you to put your data under the appropriate beamline as an anonymous user. Files are automatically deleted after 72 hours.

Putting files on the site while you're at BNL:

We recommend you compress your files and tar your directories. From the directory where your "filename.tar" is located:

1. FTP [ftp ftp.nsls-user.bnl.gov] 
2. For user enter: anonymous 
3. For password enter: your e-mail.
3. at the ftp prompt >cd  outbound/X6A 
4. at the ftp prompt >bin
5. at the ftp prompt >put filename.tar

Getting files from the site when you're at home (Linux):

1. FTP [ftp ftp.nsls-user.bnl.gov]
2. For user enter : anonymous
3. For password enter: your email
4. at the ftp prompt >cd  outbound/X6A 
5. at the ftp prompt >bin
6. at the ftp prompt >get filename.tar

Getting files from the site when you're at home using gftp (Linux):

1. In terminal type "gftp", press enter
2. GUI pops up; in the box labeled Host type "ftp.nsls-user.bnl.gov", press enter
3. For User, type "anonymous", press enter
4. Go to directory /outbound/X6A (box on the right hand-side under User)
5. Highlight the directory where your files are stored (if not sure ask your local contact)
6. The box directly under Host indicates the directory where you want the files to be downloaded
7. Click on the arrow pointing towards the left.

Download should begin. On the bottom it gives you the estimated amount of time left and percentage complete.

Getting files from the site when you're at home using Filezilla (Windows, Mac, Linux):

1. Download and install Filezilla client
2. For Host, type "ftp.nsls-user.bnl.gov
3. You are now connected to the ftp site
4. Find your remote site directory (provided by your local contact
5. Select the directory (local site) where you want your files to be downloaded to
6. Drag desired folder from remote site to local site

Your download should begin.

[ Top ]


FTP through proxy

For step by step instructions, please see FTP through proxy

[ Top ]


Backup to Laptop Computer

Image:Laptop.gif Archiving your data to your own Laptop Computer is the most recommended way. Users who only need access to the Internet on a short term or intermittent basis while working on the experimental floor at NSLS do not need a static IP address.The DHCP server on the network can be used to automatically assign an IP address to your computer. Follow the instructions for using DHCP on the following operating systems: Windows NT, Windows 98, Mac OS, Redhat Linux, Debian Linux, and other Linux.
Data Transfer Using FTP
      1. FTP 192.168.10.11 (for CYS)
         FTP 192.168.10.12 (for VAL)
         FTP 192.168.10.13 (for HIS)
      2. Name (192.168.10.11):x6auser
      3. Password: *****
      4. CD directory where your data resides
      5. mget directory name/filenames
Data Transfer Using SCP
      1. cd to directory where you want to transfer the data.
      2. scp -r -p2223@ala.nsls.bnl.gov:/directory-where-data-resides.
         (port 2223 to cys ; 2224 to val ; 2227 to his)
      3. password required

On Windows based systems, you could use the following programs to FTP/SCP/SFTP

      1. WS_FTPLE.exe]
      2. WINSCP.exe

If you are using MAC or Linux system, you can directly use FTP program

[ Top ]


Taking Backup on the DVD Media

Users will be able to backup their data presently in /data2 and /data3.

Below are step-by-step instructions on how to use k3b to write user-specified directories to a DVD media.


  • You can start k3b by typing: k3b & on the command line or directly selecting the program from the Start Icon -> System -> Archiving ->k3b.
  • Click on New Data DVD Project
k3b main window


  • In the top window go to the directory where your data is being kept. If the data is stored in another system, please use scp command to transfer the data to the local hard disk or if the other hard disk is mounted, you can diectly access the data without having to transfer the data.
new DVD project


  • Drag and drop the directories that need to be backed up on DVD media to the new DVD project.
Burn DVD project


  • The burning device is the name of the DVD burner. In the options, select On the fly. You can select Verify Written Data if you want to check if the data written to your DVD media is correct (generally this option is not necessary).
  • Now, click on the Burn to start the writing process.

[ Top ]


USB and Firewire

USB and firewire connections as well as power cable that fits most of the external hard drives are provided and are located on the left corner of the desk, behind pro LCD display.

This is certainly the safest and fastest way to backup data, as long as hard drives are not NTFS formated.


Taking Backup Using FireWire

Backup the data using cys on your external hard drive

 1. in cys : mount /mnt/fire or mount /mnt/fire2
 2. make a directory in the hard drive : mkdir /mnt/fire/x6aXXX
 3. cp -ar /data_val/User/Life#/date /mnt/fire/x6aXXX/
 4. and go for a LONG COFFEE: Image:Coffee.jpeg
 5. when the data is backed up: umount /mnt/fire or /mnt/fire2


Taking Backup Using USB2.0

3 options are available.

Option 1: via the provided cable in HIS

    1. in his (as root): mount -t ntfs-3g /dev/sdi1 /mnt/usb -o force
    2. make a directory in your hard drive
    3. use cp command to copy data to your directory in your hard drive
    Note: use df command to see where your hard drive is located (i.e. /sdi1)


Option 2: The lightest and most affordable.

    1. Bring internal hard drive (SATA or IDE) with no case and no power supply.
    2. Plug it on the available converter (see picture)
    3. Mount the drive
    4. Copy all data
    5. Umount the drive

Image:drive.jpg

[ Top ]