/Designs/Measuring_instruments/RMDS01B/SW/Bolidozor/SpectrumLab/sync.sh
114,7 → 114,6
syncdir capture/"$LAST_HOUR" -a
syncdir data/"$LAST" -a
syncdir data --dirs --delete
syncdir . --dirs --delete
# days changed, sync whole yesterday too
if [ "$LAST" != "$OLD" ]
142,6 → 141,7
# save only tail from logfile
tail -n 1000 "$1"/logfile > "$1"/logfile.txt
rm "$1"/logfile
syncdir . --dirs --delete > /dev/null 2>&1
exec > >(tee "$1"/logfile)
exec 2>&1