1.4 KiB
How to pass this test
This test can be used with any cloud storage, which is available in RClone.
You must have installed RClone on your computer.
Example: how to run this test with PCloud
- Create PCloud account.
- Create rclone configuration using this instruction:
Let's presume that the name of your remote storage, which you put during the first step, is pcloud1.
name> pcloud
- Put the file employee.yml or any other to the root directory of your PCloud storage.
- Make sure that your configuration works. For example, run this command:
rclone cat pcloud1:employee.yml
pcloud1 is the name of your remote storage: (2. name> pcloud1), person.json is in the root folder.
- you will see the content of the file in your console.
If your cloud storage contains buckets (Amazon S3, minio, Backblaze B2) and the file employee.yml is put into the bucket1, the access to the file is:
rclone cat minio1:bucket1/employee.yml
minio1 is the name of your cloud storage.
The data is stored in the file rclone.conf. On Linux, its default path is:
${HOME}/.config/rclone/rclone.conf
-
Create "/cfg/json" directory in your remote storage. It will be your working directory in the example.
-
Put the name of your remote storage with the full path '/cfg/json' to the file 'cloud.txt'
pcloud_mv1:/cfg/json
- Run the example:
go run example.go