[Rclone] Mount vStorage on Window server

To Mount vStorage to Local Drive on Windows using Rclone, follow these instructions:

1. Download and Install Rclone

2. Create a certificate file rclone.conf

  • After downloading and installing Rclone, create a file rclone.conf in the directory C:\Users\username\.config\rclonewith the content

[vstorage]
type = s3
provider = Other
access_key_id = <<Lấy thông tin từ vStorage Portal>>
secret_access_key = <<Lấy thông tin từ vStorage Portal>>
endpoint = https://hcm04.vstorage.vngcloud.vn

3. Perform mount

  • Next, you can use Rclone with CMD or PowerShell

    • To list the objects in a bucket, use the command:

      C:\Users\stackops\Downloads\rclone.exe ls vstorage:[bucket_name]
    • To upload an object to a bucket, use the command:

      C:\Users\stackops\Downloads\rclone.exe copy [local_path] vstorage:[bucket_name]
    • To mount a bucket on vStorage to local_path, run the command:

      C:\Users\stackops\Downloads\rclone.exe mount vstorage:[bucket_name] [local_path] --vfs-cache-mode off --allow-non-empty --allow-other --drive-chunk-size 128M  --max-read-ahead 200M --dir-cache-time 30m

Note:

  • You do not need to create the local_path on the local machine when mounting.

  • Rclone does not support background mode so you must not close cmd during use.

Last updated