Difference between revisions of "File transfer via ftp"

From mn/geo/geoit
Jump to: navigation, search
 
Line 3: Line 3:
 
Your retrieved files are transferred to UiO via ftp.
 
Your retrieved files are transferred to UiO via ftp.
  
This is set-up under "2. Logging in and account settings".
+
This is set-up under "2. Logging in and account settings".
  
 
+
<br/>When retrieving data you can set it up so that the data are transferred automatically over to UiO.
When retrieving data you can set it up so that the data are transferred automatically over to UiO.
 
  
 
This is done when retrieving data for FLEXPART.
 
This is done when retrieving data for FLEXPART.
  
 +
<br/>You can also transfer files manually by using the ECtrans association specified under "2. Logging in and account settings".
  
You can also transfer files manually by using the ECtrans association specified under "2.  Logging in and account settings".
+
<br/>'''To transfer one file:'''
  
 +
ectrans -remote user@genericSftp -source ectmp://sbc/oper_2012_07/EN12070600
  
'''To transfer one file:'''
 
ectrans -remote user@genericSftp -source ectmp://sbc/oper_2012_07/EN12070600
 
 
(using your directory, and your ECtrans association, i.e. change nina to your setting.)
 
(using your directory, and your ECtrans association, i.e. change nina to your setting.)
  
 +
<br/>'''To transfer several files use a script containing the following:'''
  
'''To transfer several files use a script containing the following:'''
 
 
  #!/bin/ksh
 
  #!/bin/ksh
 
  for f in `els ectmp:/sbc/oper_2012_07 | grep EN1207150*  | awk '{print $9}'`
 
  for f in `els ectmp:/sbc/oper_2012_07 | grep EN1207150*  | awk '{print $9}'`
Line 26: Line 25:
 
  ectrans -remote user@genericSftp -source ectmp:/sbc/oper_2012_07/$f
 
  ectrans -remote user@genericSftp -source ectmp:/sbc/oper_2012_07/$f
 
  done  
 
  done  
 +
 
(using your directory, and your ECtrans association, i.e. change user to your setting.)
 
(using your directory, and your ECtrans association, i.e. change user to your setting.)
  
Line 31: Line 31:
  
 
NB: You need that extra 0 after 15 to get all files on only the 15th, if you don't have the extra 0 you will get all files from the 10th to the 20th.
 
NB: You need that extra 0 after 15 to get all files on only the 15th, if you don't have the extra 0 you will get all files from the 10th to the 20th.
 +
 +
[[Category:Tools]][[Category:Models]][[Category:ECMWF]]

Latest revision as of 17:22, 30 January 2015

Back to ECMWF overview

Your retrieved files are transferred to UiO via ftp.

This is set-up under "2. Logging in and account settings".


When retrieving data you can set it up so that the data are transferred automatically over to UiO.

This is done when retrieving data for FLEXPART.


You can also transfer files manually by using the ECtrans association specified under "2. Logging in and account settings".


To transfer one file:

ectrans -remote user@genericSftp -source ectmp://sbc/oper_2012_07/EN12070600

(using your directory, and your ECtrans association, i.e. change nina to your setting.)


To transfer several files use a script containing the following:

#!/bin/ksh
for f in `els ectmp:/sbc/oper_2012_07 | grep EN1207150*  | awk '{print $9}'`
do
echo $f
ectrans -remote user@genericSftp -source ectmp:/sbc/oper_2012_07/$f
done 

(using your directory, and your ECtrans association, i.e. change user to your setting.)

This one transfers all files on the 15th July 2012 (EN1207150*).

NB: You need that extra 0 after 15 to get all files on only the 15th, if you don't have the extra 0 you will get all files from the 10th to the 20th.