6 Temmuz 2022 Çarşamba

Google Cloud - gsutil komutu

cp seçeneği
Örnek
Şöyle yaparız
gsutil cp rlwy04-1657028737.tar.gz gs://product-oce-private-okd4-cluster/rlwy04.tar.gz
iam seçeneği
Örnek
Şöyle yaparız
Şöyle yaparız
#Storage bucket in GCS
# Select GCP project
$  gcloud config set project [project-name]

# Create a GCS bucket
$  gsutil mb -l us-central1 -b on gs://my-vitess-operator-backup-bucket
Creating gs://my-vitess-operator-backup-bucket/...

# Create a GCP service account
$ gcloud iam service-accounts create my-backup-service-account
Created service account [my-backup-service-account].

# Grant the service account access to the bucket gsutil iam ch
$ gsutil iam ch serviceAccount:my-backup-service-account@planetscale-dev.iam.gserviceaccount.com:objectViewer,objectCreator,objectAdmin \
gs://my-vitess-operator-backup-bucket

mb seçeneği
Örnek
Şöyle yaparız
#Storage bucket in GCS
# Select GCP project
$  gcloud config set project [project-name]

# Create a GCS bucket
$  gsutil mb -l us-central1 -b on gs://my-vitess-operator-backup-bucket
Creating gs://my-vitess-operator-backup-bucket/...

Hiç yorum yok:

Yorum Gönder