1 / 7

数据传输

天文数据与归档培训. 数据传输. 何勃亮 国家天文台,中国虚拟天文台 hebl@nao.cas.cn. SSH. ssh user@host -p port . ssh / config Host astrondata Port 2013 / etc /hosts 192.168.40.28 astrondata ssh user@host ssh host alias shost =‘ ssh host’. SSH Key. ssh-keygen -t rsa -C " your_email@example.com "

Download Presentation

数据传输

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 天文数据与归档培训 数据传输 何勃亮 国家天文台,中国虚拟天文台 hebl@nao.cas.cn

  2. SSH • sshuser@host -p port • .ssh/config • Host astrondata • Port 2013 • /etc/hosts • 192.168.40.28 astrondata • sshuser@host • ssh host • alias shost=‘ssh host’

  3. SSH Key • ssh-keygen -t rsa -C "your_email@example.com" • cat id_rsa.pub >> .ssh/authorized_keys • ssh 10.23.1.91

  4. scp • usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-iidentity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2 • Example • scp -P 2013 file user@astrondata:~/ • scp -P 2013 -r diruser@astrondata:~/

  5. rsync • rsync [OPTION]... SRC [SRC]... DEST

  6. rsync -e "ssh -p 2013" -azPsrchebl@host:dest • rsync -azP src host:dest 2>&1 > tsf_20131212.log

  7. 丽江2.4米望远镜 • 数据同化:抽取头信息,建立元数据表,除了普通的 FITS 头信息外,另外加入几个字 段 • filesize文件大小,精确到字节 • checksum 文件校验码,确认文件的完整性 • recdate入库时间 • 数据统计:统计此次数据的数目、大小等信息 • 数据入库 • 数据传输 • 发送归档报告

More Related