1

I use Google Cloud Storage successfully in Linux for backups. I first mount the storage and then easily copy the files.

Now I want to do the same in windows, but I can't find a way to mount Google Cloud Storage as device.

ice1e0
  • 111
  • 1
  • 1
  • 3
  • Just use the [relevant command-line utility](https://cloud.google.com/storage/docs/gsutil/commands/cp) to push backups where you need them. Mounting cloud storage buckets is unreliable. – EEAA Feb 07 '17 at 20:51

3 Answers3

4

You can use Rclone. Rclone is an open-source command-line program to manage files on cloud storage. It use WinFsp to mount remote drive to Windows.

  1. Install Rclone and WinFsp. Remember to add Rclone location to your PATH.

  2. Follow the steps here to set up your remote GCP bucket. If your GCP bucket use Uniform bucket-level access, remember to set the --gcs-bucket-policy-only option to true when configuring Rclone remote drive.

  3. Mount the remote GCP bucket as a local disk

    rclone mount remote:path/to/files X: 
    

    where X: is an unused drive letter. You can find more details here.

  • I tried `rclone mount` and works fine. However if I add something new in bucket it does not get reflected on my windows. However if I delete from my windows it will reflect in my Google Cloud Storage – Dean Christian Armada Jul 16 '20 at 15:31
3

There are many 3rd party tools (i.e. [1][2]) that will allow you to mount a bucket and see it as a drive in Windows. Nevertheless, FUSE is only available for Linux. As per the previous comment, if you are only using GCS to store your backups, you can upload them from the disk using gsutil or Cloud Tools for PowerShell.

Carlos
  • 1,395
  • 9
  • 15
1

A workaround for that would be to mount it using FUSE into a Linux instance and share it via network Samba/NFS. This would allow you to mount it as a unit in your Windows Machine, even share the bucket with different instances in the network. With this way you could restrict the accesses from Samba, adding an extra layer. Perhaps it’s not optimal but it offers more possibilities.

Thrahir
  • 46
  • 5
  • 1
    hmm, yes this works when I would have a running Linux server somewhere, but I don't. – ice1e0 Jan 29 '18 at 02:56
  • 1
    You mean you are doing this on-premise? Sorry I thought you were to mean to link a Windows Google Cloud Compute Instance with a Cloud Storage. Perhaps you could install a Virtualbox light machine with linux in your system or do a VPN Tunnel with a Google Cloud Instance and Openvpn. – Thrahir Jan 30 '18 at 16:48