Skip to content
Snippets Groups Projects
Commit 044e16a9 authored by Delia Passalacqua's avatar Delia Passalacqua
Browse files

Add instructions to mount object storage

Fix formatting issues

Fix formatting issues v2
parent 39448cf3
No related branches found
No related tags found
No related merge requests found
......@@ -37,19 +37,19 @@ Case 2: Write variables in the configuration file
"""""""""""""""""""""""""""""""""""""""""""""""""
Take note of these three variables in *app-credentials.sh*::
OS_REGION_NAME
OS_APPLICATION_CREDENTIAL_ID
OS_APPLICATION_CREDENTIAL_SECRET
OS_REGION_NAME
OS_APPLICATION_CREDENTIAL_ID
OS_APPLICATION_CREDENTIAL_SECRET
Add the following text to *rclone.conf*::
[garr-cloud]
type = swift
auth = https://keystone.cloud.garr.it:5000/v3/
auth_version = 3
region = <insert here the content of OS_REGION_NAME>
application_credential_id = <insert here the content of OS_APPLICATION_CREDENTIAL_ID>
application_credential_secret = <insert here the content of OS_APPLICATION_CREDENTIAL_SECRET>
[garr-cloud]
type = swift
auth = https://keystone.cloud.garr.it:5000/v3/
auth_version = 3
region = <insert here the content of OS_REGION_NAME>
application_credential_id = <insert here the content of OS_APPLICATION_CREDENTIAL_ID>
application_credential_secret = <insert here the content of OS_APPLICATION_CREDENTIAL_SECRET>
Mind that ``env_auth = true`` takes variables from environment, so you shouldn't insert it in this case.
......@@ -121,3 +121,26 @@ The following command copies files from remote to a local directory, create it i
checkDir/subdir1:
total 4
-rw-rw-r-- 1 ubuntu ubuntu 459 Nov 13 15:32 file2.txt
Mounting object storage on local filesystem
-------------------------------------------
First, you need to create a directory on which you will mount your filesystem::
$ mkdir ~/mnt-rclone
Then you can simply mount your object storage with::
$ rclone --vfs-cache-mode writes mount garr-cloud: ~/mnt-rclone
``vfs-cache-mode`` flag enable file caching, you can use either ``writes`` or ``full`` option. For further explanation you can see official documentation at the link:
https://rclone.org/commands/rclone_mount/#file-caching
Now that your object storage is mounted, you can list, create and delete files in it.
Unmount object storage
^^^^^^^^^^^^^^^^^^^^^^
To unmount, simply press ``CTRL-C`` and the mount will be interrupted.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment