Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

6 Ways to Transfer Files in Google Cloud Platform

by Cloudbooklet
5 years ago
in Google Cloud, Cloud Storage, Compute Engine
6 Ways To Transfer Files In Google Cloud Platform
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

6 Ways to Transfer Files in Google Cloud Platform. In this guide you are going to learn different steps to transfer files in Google Cloud. Prequisites Install and Setup Google Cloud SDK. Table of Contents Google Cloud Storage to Google Compute Engine. Google Compute Engine to Google Cloud Storage. Google Cloud Storage to the local […]

ADVERTISEMENT

6 Ways to Transfer Files in Google Cloud Platform. In this guide you are going to learn different steps to transfer files in Google Cloud.

Prequisites

Install and Setup Google Cloud SDK.

Table of Contents

  1. Google Cloud Storage to Google Compute Engine.
  2. Google Compute Engine to Google Cloud Storage.
  3. Google Cloud Storage to the local computer.
  4. Local computer to Google Cloud Storage.
  5. Upload/Download using Google Cloud Shell.
  6. Transfer files using FileZilla.

To use the gsutil command you need a little knowledge about how to use the terminal/command line/ssh.

ADVERTISEMENT

Set up Google Cloud SDK

Once you have installed Google Cloud SDK you can use the gsutil or gcloud command to transfer the files using gsutil cp command.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Open terminal in your local computer and configure the project you wish to use. Run the following command to set up gcloud

gcloud init

Google Cloud Storage to Google Compute Engine

To copy a file from Google Cloud Storage to your VM Instance use the following command.

ADVERTISEMENT

You can run this command either by the local terminal or from VM Instance SSH.

gsutil cp gs://bucket_name/filename /home/username/folder_name

This command syncs the file from Cloud Storage to your VM Instance.

ADVERTISEMENT

Google Compute Engine to Google Cloud Storage

To copy a file from your VM Instance to Cloud Storage, SSH your VM Instance and navigate to the directory where the file is and execute the following command.

gsutil cp filename gs://bucket_name

This command syncs the file from your Instance to your Storage Bucket.

ADVERTISEMENT

Google Cloud Storage to the local computer

Open terminal in your local computer and navigate to the folder where you need the file to be copied and run this command.

gsutil -m cp -r gs://bucket_name/folder dir

This will cause everything nested under gs://bucket_name/folder to be downloaded into dir, resulting in files with names like dir/data/a/b/c

ADVERTISEMENT

Local computer to Google Cloud Storage

Open a terminal in your local computer and navigate to the folder where the file is and run this command.

gsutil -m cp -r dir gs://bucket_name/folder

This will cause everything nested under dir to be downloaded into gs://bucket_name/folder

Upload/Download using SSH

To download or upload a file using SSH click the SSH button next to your VM Instance to open a terminal in your web browser.

Download Using Ssh

Click the top right gear icon in your terminal window to upload or download a file directly. This method will be very slow compared to the above all process.

Download

From one instance to another

You can also transfer files from one instance to another instance using the gcloud command.

gcloud compute scp FILE_NAME --project TARGET_PROJECT_ID TARGET_INSTANCE_NAME:folder_name --zone region

Another method is below.

gcloud compute copy-files instance_name:remote_location local_dir --zone=region

Transfer files using FileZilla

You can setup SFTP to fransfer files using FileZilla.

Get your Professional Google Cloud Architect certificate with this easy to learn course now.

These are the different methods to transfer files in Google Cloud Platform.

Tags: Compute EngineGoogle Cloud Platform
Share20Tweet12SendShare
Cloudbooklet

Cloudbooklet

Comments 3

  1. Avatar Of Divertechnology@Gmail.com [email protected] says:
    2 years ago

    ok, filezilla its more human friendly

    Reply
  2. Avatar Of Willard Willard says:
    4 years ago

    THESE WAYS ARE MEANT FOR COMPUTER MAJORS, NOT FOR PEOPLE WHO USE THE COMPUTER FOR COMMON PURPOSES..ENTERTAINMENT, NEWS, PHOTOS, DOCUMENTS TO SAVE. IS THERE A SIMPLE WAY FOR NON-TECHNICAL PEOPLE TO UPLOAD DOCUMENTS?

    Reply
    • Avatar Of Cloudbooklet Cloudbooklet says:
      4 years ago

      For uploading the files without going to terminal command promp, you can setup SSH Keys to upload files. Please check the following link. https://www.cloudbooklet.com/google-cloud-sftp-setup-using-filezilla-client/

      These are the only ways to upload files to your VM Instance

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Amazon Prime

Amazon Prime Big Deal Days 2023: Best Deals

September 21, 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

5 Best TikTok Private Account Viewer in 2023

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

10 Best AI Prompts for Writers to Improve Website SEO

How to Delete Netflix Account Permanently

Popular Articles

Ai Video Generator Free

10 Best AI Video Generator Free of 2023

September 14, 2023

10 Free Business Email Account Providers in 2023

How to Stabilize Videos for Free with Online Video Stabilizer

How to Use WhatsApp Pi – Personal AI Assistant for WhatsApp

How to Make Money with AI: A Step-by-Step Guide

6 Best AI Cover Song Generators for Free Online

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.