Bỏ qua

Amazon S3

raidrivecli add aws --bucket <bucket>

Nếu bạn thêm bộ lưu trữ mà không có tùy chọn nào, bạn sẽ được nhắc nhập Access Key ID và Secret Access Key.

$ raidrivecli add aws --bucket mybucket
Access Key ID: <key>
Secret Access Key: ********

Bạn cũng có thể chỉ định Access Key ID hoặc Secret Access Key bằng tùy chọn.

raidrivecli add aws --bucket <bucket> --access-key-id <key>
raidrivecli add aws --bucket <bucket> \
                    --access-key-id <key> \
                    --secret-access-key [secret]

Cảnh báo

Các lệnh shell được lưu lại trong lịch sử. Nếu có thể, chúng tôi khuyên bạn không ghi kèm giá trị cho tùy chọn --secret-access-key.

Nếu không chỉ định thư mục gắn, bộ lưu trữ sẽ được gắn vào một thư mục trong /mnt, chẳng hạn /mnt/aws. Để chỉ định thư mục gắn, hãy dùng tùy chọn --mount-path.

raidrivecli add aws --bucket mybucket --mount-path /myservices/aws

Tùy chọn bổ sung

--bucket <bucket>                       bucket
--access-key-id <key>                   access key id
--secret-access-key [secret]            secret access key

Xem thêm