daycode=`date "+%Y%m%d"`
echo put psat-${daycode}.tar.gz psat/devel/ > .sftpsatbatch
psatar
#echo SFTP archive to ampere ...
#sftp -b .sftpsatbatch fmilano\@161.67.138.19
#echo SFTP archive to faraday ...
#sftp -b .sftpsatbatch fmilano\@161.67.37.201
echo SFTP archive to volta ...
sftp -b .sftpsatbatch fmilano\@161.67.138.20
echo SFTP rchive to tesla ...
sftp -b .sftpsatbatch fmilano\@161.67.138.21
echo SFTP archive to puerta ...
sftp -b .sftpsatbatch fmilano\@ssc.uclm.es
echo SFTP archive to thunderbox ...
sftp -b .sftpsatbatch fmilano\@thunderbox.uwaterloo.ca
echo SFTP archive to volta cluster ...
sftp -b .sftpsatbatch fmilano\@172.20.50.119
echo Move local copy to archive.
#mv ~/psat-${daycode}.tar.gz psat/archive
rm .sftpsatbatch
echo Done.
