Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Пример для запуска с сервера приложения (строго для версий 21.8+), если полный путь к утилите /opt/updater:

Без форматирования
00 21 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/download-dictionaries.sh
00 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab update suggestions_bank
05 01 * * 0  cd update-dictionaries.sh
Блок кода
languagebash
title/opt/updater/download-dictionaries.sh
 && . /opt/updater/updater.env && /bin/fab download suggestions_bank
/opt/updater/env/bin/fab updatedownload suggestions_ip
10 01 * * 0  cd email
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download suggestions_fio
/opt/updater/env/bin/fab updatedownload suggestions_addressip
30 02 * * 0  cd  
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download suggestions_eas
/opt/updater/env/bin/fab updatedownload suggestions_geo
35 02 * * 0  cd /opt/updater && . /opt/updater/updater.env && /env/bin/fab download suggestions_house
/opt/updater/env/bin/fab updatedownload suggestions_geonames
40 02 * * 0  cd iso3166
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download suggestions_geonames
/opt/updater/env/bin/fab updatedownload suggestions_osm
00 03 * * 0  cd 
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download suggestions_party
/opt/updater/env/bin/fab updatedownload suggestions_partyext update suggestions_party
00 04 * * 0  cd 

/opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab updatedownload factor_geocode
30 04 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/env/bin/fab updatedownload factor_fias
Блок кода
languagebash
title/opt/updater/downloadupdate-dictionaries.sh
/opt/updater/env/bin/fab downloadupdate suggestions_bank
/opt/updater/env/bin/fab downloadupdate suggestions_ipemail
/opt/updater/env/bin/fab downloadupdate suggestions_addressfio
/opt/updater/env/bin/fab downloadupdate suggestions_geoip

/opt/updater/env/bin/fab downloadupdate suggestions_geonamesaddress
/opt/updater/env/bin/fab downloadupdate suggestions_osmflat
/opt/updater/env/bin/fab downloadupdate suggestions_partystead
/opt/updater/env/bin/fab downloadupdate suggestions_partyextgeonames
/opt/updater/env/bin/fab downloadupdate suggestions_emailosm

/opt/updater/env/bin/fab downloadupdate suggestions_fioparty

/opt/updater/env/bin/fab downloadupdate factor_geocode
/opt/updater/env/bin/fab downloadupdate factor_fias


Пример для запуска с внешней машины , если полный (строго для версий 21.8+), если полный путь к утилите /opt/updater, а 10.0.1.34 — адрес сервера приложения:

Без форматирования
00 21 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/download-dictionaries.sh

00 23 * * 6  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/copy-dictionaries.sh
00 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /opt/updater/update-dictionaries.sh
Блок кода
languagebash
title/opt/updater/download-dictionaries.sh
/opt/updater/env/bin/fab download-H 10.0.1.34 update to suggestions_bank /tmp/dictionaries/suggestions_bank
05 01 * * 0  cd /opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to suggestions_email /tmp/dictionaries/suggestions_email
/opt/updater/env/bin/fab download-H 10.0.1.34 update suggestions_ip
10 01 * * 0  cd to suggestions_fio /tmp/dictionaries/suggestions_fio
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to suggestions_ip /tmp/dictionaries/suggestions_ip
 
/opt/updater/env/bin/fab download-H 10.0.1.34 update suggestions_address
30 02 * * 0  cd to suggestions_eas /tmp/dictionaries/suggestions_eas
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to suggestions_geo /tmp/dictionaries/suggestions_geo
/opt/updater/env/bin/fab download-H 10.0.1.34 update suggestions_geo
35 02 * * 0  cd to suggestions_house /tmp/dictionaries/suggestions_house
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to suggestions_iso3166 /tmp/dictionaries/suggestions_iso3166
/opt/updater/env/bin/fab -H 10.0.1.34 updatedownload-to suggestions_geonames
40 02 * * 0  cd /opt/updater && . /opt/updater/updater.env && tmp/dictionaries/suggestions_geonames
/opt/updater/env/bin/fab download-H 10.0.1.34 update to suggestions_osm /tmp/dictionaries/suggestions_osm
00 03 * * 0  cd 
/opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to suggestions_party /tmp/dictionaries/suggestions_party
/opt/updater/env/bin/fab -H 10.0.1.34 updatedownload-to suggestions_partyext update /tmp/dictionaries/suggestions_party
00 04 * * 0  cd partyext

/opt/updater && . /opt/updater/updater.env && /env/bin/fab download-to factor_geocode /tmp/dictionaries/factor_geocode
/opt/updater/env/bin/fab download-H to factor_fias /tmp/dictionaries/factor_fias
Блок кода
languagebash
title/opt/updater/copy-dictionaries.sh
SERVER="10.0.1.34 update factor_geocode
30 04 * * 0  cd "
/opt/updater && . /opt/updater/updater.env && /env/bin/fab -H $SERVER scp suggestions_bank /tmp/dictionaries/suggestions_bank
/opt/updater/env/bin/fab -H 10.0.1.34 update factor_fias
Блок кода
languagebash
title/opt/updater/download-dictionaries.sh
$SERVER scp suggestions_email /tmp/dictionaries/suggestions_email
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_bankfio /tmp/dictionaries/suggestions_bankfio
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_ip /tmp/dictionaries/suggestions_ip

/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_addresseas /tmp/dictionaries/suggestions_addresseas
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_geo /tmp/dictionaries/suggestions_geo
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_geonameshouse /tmp/dictionaries/suggestions_geonameshouse
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_osmiso3166 /tmp/dictionaries/suggestions_osmiso3166
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_partygeonames /tmp/dictionaries/suggestions_partygeonames
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_partyextosm /tmp/dictionaries/suggestions_partyextosm

/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_emailparty /tmp/dictionaries/suggestions_emailparty
/opt/updater/env/bin/fab download-toH $SERVER scp suggestions_fiopartyext /tmp/dictionaries/suggestions_fiopartyext

/opt/updater/env/bin/fab download-toH $SERVER scp factor_geocode /tmp/dictionaries/factor_geocode
/opt/updater/env/bin/fab download-toH $SERVER scp factor_fias /tmp/dictionaries/factor_fias
Блок кода
languagebash
title/opt/updater/copyupdate-dictionaries.sh
SERVER="10.0.1.34"
/opt/updater/env/bin/fab -H $SERVER scp suggestions_bank /tmp/dictionaries/update suggestions_bank
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_ip /tmp/dictionaries/suggestions_ipemail
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_address /tmp/dictionaries/suggestions_addressfio
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_geo /tmp/dictionaries/suggestions_geoip

/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_geonames /tmp/dictionaries/suggestions_geonamesaddress
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_osm /tmp/dictionaries/suggestions_osmflat
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_party /tmp/dictionaries/suggestions_partystead
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_partyext /tmp/dictionaries/suggestions_partyextgeonames
/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_email /tmp/dictionaries/suggestions_emailosm

/opt/updater/env/bin/fab -H $SERVER scpupdate suggestions_fio /tmp/dictionaries/suggestions_fioparty

/opt/updater/env/bin/fab -H $SERVER scpupdate factor_geocode /tmp/dictionaries/factor_geocode
/opt/updater/env/bin/fab -H $SERVER scp factor_fias /tmp/dictionaries/update factor_fias