From d863880c23b068b666cb085e33b7ed438482502c Mon Sep 17 00:00:00 2001 From: Guillem Borrell Nogueras Date: Fri, 5 Aug 2022 00:08:22 +0200 Subject: [PATCH] Update 'Backing up stuff in Google Cloud Storage' --- Backing-up-stuff-in-Google-Cloud-Storage.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Backing-up-stuff-in-Google-Cloud-Storage.md diff --git a/Backing-up-stuff-in-Google-Cloud-Storage.md b/Backing-up-stuff-in-Google-Cloud-Storage.md new file mode 100644 index 0000000..70d4831 --- /dev/null +++ b/Backing-up-stuff-in-Google-Cloud-Storage.md @@ -0,0 +1,10 @@ +Once you have a subscription, these are the steps: + +1. Create a bucket in Google Cloud Storage +2. Create a service account in IAM & Admin of the subscription +3. When creating the account, there's an option to add a role. This role has to be "Storage object creator". If that has ever to be edited, it has to be edited in the initial IAM page, together with the other principals. +4. Create a json file for the key of that service account, in the specific menu for service accounts, where the account was created. +5. Install the google cloud SDK +6. Authenticate the google cloud command with the service principal (`gcloud auth activate-service-account --key-file=[KEY_FILE] +`) +7. Use the gcloud command to copy the local file to the bucket \ No newline at end of file