Restore yearn-exporter snapshot
source link: https://gist.github.com/mariuspod/49e859d3ed1e1d97982dffbc27027a4a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Instantly share code, notes, and snippets.
#! /bin/bash set -e
curl -L https://github.com/DarkGhost7/Yearn-Exporter-Snapshot/raw/main/vm_dump_sw.tgz -o /tmp/vm_dump_sw.tgz tar -xvzf /tmp/vm_dump_sw.tgz -C /tmp docker-compose --file services/dashboard/docker-compose.yml --project-directory . up -d victoria-metrics make down docker run -v /var/lib/docker/volumes/yearn-exporter_victoria_metrics_data/_data:/data -v /tmp/tmp/vm_dump:/backup victoriametrics/vmrestore -src=fs:///backup -storageDataPath=/data rm -fr /tmp/vm_dump_sw.tgz /tmp/tmp
echo "Successfully restored yearn-exporter snapshot."
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK