ERPC Global Storage - Hướng dẫn nhanh
☁️ ERPC Global Storage
ERPC Global Storage là dịch vụ lưu trữ đối tượng phân tán toàn cầu dành cho nhà vận hành Solana node. Tải lên bản sao lưu, snapshot, tệp cấu hình, và nhiều hơn nữa — ngay từ dòng lệnh.
Khu vực: eu (mặc định), asia, us-east, us-west, oc
Điều kiện tiên quyết
- SLV CLI đã được cài đặt (lệnh
slvkhả dụng) - Đã đăng nhập với API key (
slv login) - Gói đăng ký storage đang hoạt động (
slv storage productđể xem các gói)
Kiểm tra mức sử dụng
Xem mức sử dụng storage hiện tại và hạn mức:
bash
slv storage usageslv storage usagetext
📊 Storage Usage
Used: 500 MB / 5 GB
Files: 12
Region: eu📊 Storage Usage
Used: 500 MB / 5 GB
Files: 12
Region: euTải lên tệp
Tải tệp lên ERPC Global Storage:
bash
slv storage upload ./my-file.jsonslv storage upload ./my-file.jsonBạn cũng có thể chỉ định đường dẫn từ xa và khu vực:
bash
slv storage upload ./my-file.json --path backups/my-file.json --region asiaslv storage upload ./my-file.json --path backups/my-file.json --region asia| Tùy chọn | Mô tả |
|---|---|
-p, --path | Đường dẫn từ xa trong storage (mặc định: tên tệp) |
-r, --region | Khu vực lưu trữ (eu, asia, us-east, us-west, oc) |
text
√ Got presigned URL
√ Upload complete
Path: backups/my-file.json
Region: asia
Size: 1.2 KB√ Got presigned URL
√ Upload complete
Path: backups/my-file.json
Region: asia
Size: 1.2 KBTải xuống tệp
Tải tệp từ ERPC Global Storage:
bash
slv storage download backups/my-file.jsonslv storage download backups/my-file.jsonLưu vào đường dẫn cục bộ cụ thể:
bash
slv storage download backups/my-file.json --output ./restored-file.jsonslv storage download backups/my-file.json --output ./restored-file.json| Tùy chọn | Mô tả |
|---|---|
-o, --output | Đường dẫn đầu ra cục bộ (mặc định: tên tệp gốc) |
-r, --region | Khu vực lưu trữ |
Liệt kê tệp
Liệt kê tệp trong storage của bạn:
bash
slv storage listslv storage listLọc theo prefix:
bash
slv storage list --prefix backups/slv storage list --prefix backups/| Tùy chọn | Mô tả |
|---|---|
-p, --prefix | Lọc theo prefix đường dẫn |
-r, --region | Khu vực lưu trữ |
-l, --limit | Số lượng tệp tối đa trả về |
Xóa tệp
Xóa tệp khỏi ERPC Global Storage:
bash
slv storage delete backups/old-backup.tar.zstslv storage delete backups/old-backup.tar.zst| Tùy chọn | Mô tả |
|---|---|
-r, --region | Khu vực lưu trữ |
-y, --yes | Bỏ qua lời nhắc xác nhận |
Xem các gói Storage
Xem các gói storage khả dụng và liên kết mua hàng:
bash
slv storage productslv storage productNếu bạn đã có gói đăng ký, lệnh này hiển thị gói hiện tại và tùy chọn nâng cấp.
Tham chiếu lệnh
| Lệnh | Viết tắt | Mô tả |
|---|---|---|
slv storage upload [file] | Tải lên tệp | |
slv storage download [path] | slv storage dl | Tải xuống tệp |
slv storage list | slv storage ls | Liệt kê tệp |
slv storage delete [path] | slv storage rm | Xóa tệp |
slv storage usage | Hiển thị mức sử dụng và hạn mức | |
slv storage product | Xem các gói storage | |
slv storage upgrade [quantity] | Thay đổi dung lượng storage |