Skip to content
Snippets Groups Projects
Commit ab9f9975 authored by Hernán Asorey's avatar Hernán Asorey
Browse files

Ready for test

parent 5e1c391a
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,6 @@
# # For more information see the manual pages of crontab(5) and cron(8)
# #
# # m h dom mon dow command
# 10 * * * * /bin/bash -ic /home/asoreyh/MEGA/projects/lago/lago-software/acqua/brc/lago/lago-proc.sh
10 * * * * /bin/bash -ic /home/asoreyh/MEGA/projects/lago/lago-software/acqua/brc/lago/lago-proc.sh
50 5 * * * /bin/bash -ic /home/asoreyh/MEGA/projects/lago/lago-software/acqua/brc/lago/lago-trfs.sh >> /home/asoreyh/MEGA/projects/lago/lago-software/acqua/brc/lago/lago-daq.log 2>&1
# # END OF LAGO CRONTAB
......@@ -57,10 +57,10 @@ internalPT=true
racimo=false
# BLOCK DATA TRANSFER
autoTransfer=false
autoTransfer=true
hourInterval=24
remoteUser=""
remoteIP="200.16.117.76"
remoteIP="200.16.117.110"
eraseOldFiles=false
work="/home/asoreyh/MEGA/projects/lago/lago-software/acqua/brc/lago"
user="asoreyh"
......
......@@ -87,7 +87,7 @@ push @parameters,
1,
0.,
"siteRespName",
"Site Responsible Name (please don't use weird characters)",
"Site Responsible Name (please don't use accents, special or weird characters)",
0,
"",
"siteRespId",
......@@ -103,7 +103,7 @@ push @parameters,
0,
"",
"siteDetectors",
"Number of Detectors in this site (1-3 for this electronics)",
"Number of Detectors in this site (1-3 for each electronic board)",
1,
1,
......@@ -293,9 +293,9 @@ push @parameters,
0,
"",
"remoteIP",
"IP of the central repository (remote)",
"IP of the central repository (remote, please don't change if your are not sure)",
0,
"200.16.117.76",
"200.16.117.110",
"eraseOldFiles",
"WARNING: If yes, it will erase local data and metadata files older than 30 days",
2,
......@@ -615,9 +615,11 @@ close($fh);
print "# SUCCESS\tNew crontab.run created.\n";
print "# SUCCESS\tEverything was fine. Enjoy.\n";
print "######################################################################\n";
print "# Now, we are ready to start the acquisition #\n";
print "# Now, you are almost ready to start the acquisition #\n";
print "# Please verify lago-configs content to be sure everything is right #\n";
print "# cat lago-configs #\n";
print "# BEFORE TO CONTINUE, PLEASE: source $home/.bashrc #\n";
print "# and then: lago-start.sh #\n";
print "# BE SURE YOU TRANSFERED YOUR KEY TO LAGO CENTRAL DATA REPOSITORY #\n";
print "# TO DO THIS, PLEASE: ssh-copy-id user@200.16.117.110 #\n";
print "# ONCE EVERYTHING IS FINE, then: lago-start.sh #\n";
print "######################################################################\n";
......@@ -27,12 +27,8 @@ for i in ${files}; do
fi
bzip2 -1v $i
done
files=$(find ${work} -iname "*.mtd" -type f -mmin +30)
for i in ${files}; do
echo $i
bzip2 -1v $i
done
if ($hasUSB); then
mv -v ${work}/*.bz2 ${usb}/
mv -v ${work}/*.mtd ${usb}/
fi
#!/bin/bash
source ${LAGO_DAQ}/lago-configs
cd ${work}
remoteDir=/dspace/sites/${remoteUser}/
datadir=${work}
if ($hasUSB); then
datadir=${usb}
fi
rsync -aPv $datadir/*.bz2 ${remoteUser}@${remoteIP}:~/lago/
rsync -aPv $datadir/*.bz2 ${remoteUser}@${remoteIP}:${remoteDir}
rsync -aPv $datadir/*.mtd ${remoteUser}@${remoteIP}:${remoteDir}
if (${eraseOldFiles}); then
files=$(find ${work} -iname "*.bz2" -type f -mtime +30)
rm ${files}
fi
if (${eraseOldFiles}); then
files=$(find ${work} -iname "*.mtd" -type f -mtime +30)
rm ${files}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment