Matthew Wen
07/20/2025, 9:35 PMdocker run -d -p 0.0.0.0:4001-4003:4001-4003 -p 0.0.0.0:8080:8080 \
-v $(pwd):/config \
--name greptime \
--restart unless-stopped \
greptime/greptimedb:v0.15.2 standalone start -c /config/greptimedb.toml \
--http-addr 0.0.0.0:8080 \
--rpc-bind-addr 0.0.0.0:4001 \
--mysql-addr 0.0.0.0:4002 \
--postgres-addr 0.0.0.0:4003
This is my greptimedb.toml file
[storage]
type = "S3"
bucket = "example_bucket"
root = "/greptimedb"
region = "us-west-2"
cache_capacity = "0GiB"
[storage.metadata]
type = "S3"
bucket = "example_bucket"
root = "/greptimedb/metadata"
region = "us-west-2"
The thing is I do see data get uploaded to s3, but let's say for example, my greptime server goes down, it doesn't try to restore values from b4. Is there something I'm missing.
I've been reading docs about managing the metadata config (https://docs.greptime.com/user-guide/deployments-administration/manage-metadata/configuration), but I don't want to overcomplicate my stack by adding a MySQL etc..
any recommendations?Ning
07/21/2025, 2:39 AMgreptimedb_data to local disk https://docs.greptime.com/getting-started/installation/greptimedb-standalone#dockerMatthew Wen
07/21/2025, 2:42 AMMatthew Wen
07/21/2025, 2:46 AMNing
07/21/2025, 3:04 AMgreptimedb_data directory outside the docker container, and backup it if you don't want to lose data (just like any database runs on single node). Because you already have object storage setup of data, there's only some metadata in greptimedb_data and it won't take much space.dennis zhuang
07/21/2025, 3:21 AMMatthew Wen
07/21/2025, 3:22 AMMatthew Wen
07/21/2025, 4:20 AM