-
В панели управления перейдите в раздел Объектное хранилище ⟶ Пользователи.
-
В меню (⋮) пользователя выберите Изменить пароль и отметьте чекбокс Использовать эти данные для доступа по протоколу S3.
-
Откройте режим конфигурирования:
rclone config
-
В консоли появится такой диалог:
No remotes found - make a new one
n) New remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
n/r/c/s/q>
Выберите n для создания новой конфигурации и нажмите Enter.
-
Укажите имя подключения к удаленному хранилищу, например, selectel_s3:
name> selectel_s3
-
Выберите Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc) и введите цифру, соответствующую номеру пункта (в зависимости от версии Rclone меняется порядок хранилищ, в данном примере это пункт 4). Нажмите Enter.
Type of storage to configure.
Choose a number from below, or type in your own value
1 / 1Fichier
\ "fichier"
2 / Alias for an existing remote
\ "alias"
3 / Amazon Drive
\ "amazon cloud drive"
4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
\ "s3"
[...]
Storage> 4
-
Выберите S3 провайдера Any other S3 compatible provider и введите цифру, соответствующую номеру пункта (в данном примере это пункт 10). Нажмите Enter.
Choose your S3 provider.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Amazon Web Services (AWS) S3
\ "AWS"
2 / Alibaba Cloud Object Storage System (OSS) formerly Aliyun
\ "Alibaba"
3 / Ceph Object Storage
\ "Ceph"
[...]
10 / Any other S3 compatible provider
[...]
-
Выберите false в пункте Enter AWS credentials in the next step:
Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).
Only applies if access_key_id and secret_access_key is blank.
Enter a boolean value (true or false). Press Enter for the default ("false").
Choose a number from below, or type in your own value
1 / Enter AWS credentials in the next step
\ "false"
2 / Get AWS credentials from the environment (env vars or IAM)
\ "true"
-
Введите имя пользователя и пароль:
AWS Access Key ID.
Leave blank for anonymous access or runtime credentials.
Enter a string value. Press Enter for the default ("").
access_key_id> имя_пользователя
AWS Secret Access Key (password)
Leave blank for anonymous access or runtime credentials.
Enter a string value. Press Enter for the default ("").
secret_access_key> пароль
-
Выберите пул (ru-1):
Region to connect to.
Leave blank if you are using an S3 clone and you don't have a region.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
1 / Use this if unsure. Will use v4 signatures and an empty region.
\ ""
2 / Use this only if v4 signatures don't work, eg pre Jewel/v10 CEPH.
\ "other-v2-signature"
region> ru-1
- Выберите url для доступа по протоколу S3 API:
Endpoint for S3 API.
Required when using an S3 clone.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
https://s3.storage.selcloud.ru
Все пункты ниже можно оставить пустыми, нажав после каждого Enter.
- Еще раз проверьте все настройки:
Remote config
--------------------
[selectel_s3]
type = s3
provider = Other
env_auth = false
access_key_id = имя_пользователя
secret_access_key = пароль
region = ru-1
endpoint = https://s3.storage.selcloud.ru
--------------------
y) Yes this is OK
e) Edit this remote
d) Delete this remote
y/e/d>
- Если все указано правильно, введите y и нажмите Enter.
- Для выхода из диалога настроек введите q и нажмите Enter.