Skip to content

Restore

Peter Weber edited this page Sep 17, 2026 · 13 revisions

Index:

old sonar

uv run invenio rero es slm execute daily

new sonar

# we have to delete all indicies in the new ES (Elasticvue)
uv run invenio rero es snapshot restore sonarprod daily-snap-????? --wait
from invenio_search import current_search
[t for t in current_search.put_templates()]

Files [sonar-prod]

rsync -avr --delete --progress root@premierprix.rero.ch:/srv/nfs/sonar-files/* /network/nfs/sonar_prod/invenio/files/  --exclude=lost+found

DB

ssh root@sacerdos
DROP_EXISTING=true ./copy_pg.sh

Correct problems

uv run /invenio/storage/scripts/correct_sonar.py utils correct-wrong-pids -t doc -v -c

Clone this wiki locally