jbrzusto / motusServer

R package to operate a server that processes data for https://motus.org
GNU General Public License v2.0
1 stars 0 forks source link

fix some repo filenames for SG-1814BBBK0809 #392

Closed jbrzusto closed 6 years ago

jbrzusto commented 6 years ago

some must have been incorrectly reconstructed from DB entries, e.g.:

 changeMe-SG-1814BBBK0809-75-2017-06-12T00-50-33.6290TRUE-all.txt.gz 
                                                     ^^^^
jbrzusto commented 6 years ago

These are all from June 12-14, 2017 and are duplicates of correctly-named files:

for f in `find 2017-06-1[234] -iname "*TRUE*"`; do
    y=${f/-SG/}; 
    z=${y/-75-/-000075-}; 
    x=${z/TRUE/T}; 
    if [[ -f $x ]]; then 
       echo -n 1;
    else
       echo -n 0;
    fi; 
done
echo

gives

11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

So these files will be deleted.

jbrzusto commented 6 years ago

additional files from July 1 to July 31, 2017 have this incorrect format:

2017-07-31/changeMe-SG-1814BBBK0809-75-2017-07-31T22-29-32.2850T-all.txt.gz

with "SG-" present, and boot count not left padded with zeroes to 6 digits. Still missing files from May 30 - June 12, part of boot session 75

jbrzusto commented 6 years ago

Missing files located in unprocessed archive on old server; synced to new server and re-run.