Cloudflare R2¶
עגן Bucket של Cloudflare R2 ב-Linux עם RaiDrive CLI. התחבר באמצעות זוג מפתחות גישה, מזהה החשבון שלך וכתובת נקודת הקצה.
כדי להשיג את החשבון, המפתחות או המזהים הנדרשים כאן, ראה לפני שמתחילים במדריך של Cloudflare R2 עבור אפליקציית Windows.
raidrivecli add cloudflare --bucket <bucket> --account-id <account>
אם מוסיפים אחסון רק עם האפשרויות שמוצגות למעלה, תוצג בקשה להזין Access Key ID, Secret Access Key וה-address (נקודת קצה) של האחסון.
$ raidrivecli add cloudflare --bucket mybucket --account-id myaccount
Access Key ID: <key>
Secret Access Key: ********
address: <address>
לחלופין, ניתן לציין Access Key ID או Secret Access Key כאפשרויות.
raidrivecli add cloudflare --bucket <bucket> --account-id <account> \
--access-key-id <key>
raidrivecli add cloudflare --bucket <bucket> --account-id <account> \
--access-key-id <key> \
--secret-access-key [secret]
אזהרה
פקודות מעטפת (shell) נשמרות בהיסטוריה. אם אפשר, מומלץ לא להזין ערך ישירות באפשרות --secret-access-key.
אם לא מציינים ספריית עיגון, העיגון יתבצע לספרייה כמו /mnt/cloudflare מתחת ל-/mnt. כדי לציין את ספריית העיגון, השתמש באפשרות --mount-path.
raidrivecli add cloudflare --bucket mybucket --account-id myaccount \
--mount-path /myservices/cloudflare
אפשרויות נוספות¶
--bucket <bucket> bucket
--endpoint <address> address (e.g. https://host.example.com)
--account-id <account> account id
--access-key-id <key> access key id
--secret-access-key [secret] secret access key