Comments (7)
I just tried with the latest version, and I can't tell if it creates the snapshot directory or not, because it deletes it before it says that it cannot find it:
$ vmbackup-prod -storageDataPath=/var/victoriametrics -snapshot.createURL=http://victoriametrics.somehost.com:8428/snapshot/create -dst=fs:///mnt/backup/vmetrics
2024-05-09T17:22:20.123Z info VictoriaMetrics/lib/logger/flag.go:12 build version: vmbackup-20240425-145523-tags-v1.101.0-0-g5334f0c2c
2024-05-09T17:22:20.123Z info VictoriaMetrics/lib/logger/flag.go:13 command-line flags
2024-05-09T17:22:20.123Z info VictoriaMetrics/lib/logger/flag.go:20 -dst="fs:///mnt/backup/vmetrics"
2024-05-09T17:22:20.123Z info VictoriaMetrics/lib/logger/flag.go:20 -snapshot.createURL="secret"
2024-05-09T17:22:20.123Z info VictoriaMetrics/lib/logger/flag.go:20 -storageDataPath="/var/victoriametrics"
2024-05-09T17:22:20.124Z info VictoriaMetrics/app/vmbackup/main.go:67 Snapshot create url http://victoriametrics.somehost.com:8428/snapshot/create
2024-05-09T17:22:20.124Z info VictoriaMetrics/app/vmbackup/main.go:78 Snapshot delete url http://victoriametrics.somehost.com:8428/snapshot/delete
2024-05-09T17:22:20.124Z info VictoriaMetrics/lib/snapshot/snapshot.go:32 Creating snapshot
2024-05-09T17:22:20.520Z info VictoriaMetrics/lib/snapshot/snapshot.go:64 Snapshot 20240509172220-17CDDE9977A3CE4B created
2024-05-09T17:22:20.521Z info VictoriaMetrics/lib/snapshot/snapshot.go:75 Deleting snapshot 20240509172220-17CDDE9977A3CE4B
2024-05-09T17:22:20.521Z info VictoriaMetrics/lib/httpserver/httpserver.go:119 starting server at http://127.0.0.1:8420/
2024-05-09T17:22:20.521Z info VictoriaMetrics/lib/httpserver/httpserver.go:120 pprof handlers are exposed at http://127.0.0.1:8420/debug/pprof/
2024-05-09T17:22:20.555Z info VictoriaMetrics/lib/snapshot/snapshot.go:108 Snapshot 20240509172220-17CDDE9977A3CE4B deleted
2024-05-09T17:22:20.555Z fatal VictoriaMetrics/app/vmbackup/main.go:104 cannot create backup: cannot open snapshot at "/var/victoriametrics/snapshots/20240509172220-17CDDE9977A3CE4B": open /var/victoriametrics/snapshots/20240509172220-17CDDE9977A3CE4B: no such file or directory
$ vmbackup-prod -version
vmbackup-20240425-145523-tags-v1.101.0-0-g5334f0c2c
from victoriametrics.
@CaptSpify Could you please clarify whether -storageDataPath/var/victoriametrics
is pointing to the same file system when running both VictoriaMetrics and vmbackup?
from victoriametrics.
Yup:
1 root 3h05 /victoria-metrics-prod -loggerTimezone=America/Los_Angeles -storageDataPath=/var/victoriametrics/
from victoriametrics.
@CaptSpify Are both vmbackup
and victoria-metrics-prod
running on the same machine?
I'm asking because -snapshot.createURL=http://victoriametrics.somehost.com:8428/snapshot/create
flag value looks like a URL which is pointing to another machine. If vmbackup
is running on a separate host that would explain why it cant open snapshot at the given path - because is stored on a machine where victoria-metrics-prod
is running.
from victoriametrics.
Ah, that's it then. vmbackup won't run in the victoriametrics docker container, so I set it up on another host. If it only runs locally, then I'm confused why using a url to create the snapshot is needed?
from victoriametrics.
It is needed since it is possible to change a listening host and port by using -httpListenAddr
and to enforce an authentication to create snapshot by using -snapshotAuthKey
command-line flags at VictoriaMetrics single-node side.
If any of these options is used it is possible to change -snapshot.createURL
to point to a correct address and use valid credentials.
from victoriametrics.
Ah gotcha. I just moved to an export/import model for backups instead of using vmbackup/vmrestore, so this is good to close. Thanks
from victoriametrics.
Related Issues (20)
- VMAUTh with -httpListenAddr.useProxyProtocol receive error message unexpected proxy protocol header HOT 6
- Publish VictoriaLogs dashboard to Grafana
- Provide the list of predefined Alerts for VictoriaLogs
- Improve docs for Multitenant metric routing in vmagent
- RetentionFilters don't respected deleted metricIDs
- VMuser targetref using static url with vminsert returns a 502 Bad gateway error and no logs found to debug HOT 4
- Can vmalert support horizontal expansion? HOT 5
- change topN parameter limit (hardcoded 1000) in the /api/v1/status/tsdb endpoint
- Remove unnecessary HTML files from the build HOT 2
- Cast to int limiting the cache size to MaxInt32 HOT 2
- The "match[]" parameter filtering of the http label values interface does not work HOT 1
- Request vmselect query data error: timeout awaiting response headers HOT 4
- vminsert persistent disk HOT 2
- vmselect support different strategy to query multi cluster HOT 4
- Possible regression when using metric_relabel_configs in versions > victoriametrics/vmagent:v1.99.0 HOT 8
- azure_sd_configs error: cannot list virtual machines: unexpected nextLink host HOT 2
- VMAGENT : Relocalisation and follow 407 HTTPS with authentication HOT 4
- rate() burst when there are missing data HOT 9
- Improve performance of `last_over_time` (and similar rollups like `first_over_time`, `tlast_over_time`, etc.) HOT 1
- Find the way show how many instances are pushing to vm cluster HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from victoriametrics.