SLV Cloud Storage - Bắt đầu nhanh
☁️ SLV Cloud Storage
ERPC Global Storage là lưu trữ đối tượng phân tán toàn cầu dành cho người vận hành Solana node. Tải lên bản sao lưu, snapshot, file cấu hình và nhiều hơn nữa — ngay từ dòng lệnh.
Các 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 bằng API key (
slv login) - Có gói đăng ký storage đang hoạt động (
slv storage productđể duyệt các gói)
Kiểm tra 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 file
Tải file lên cloud storage:
bash
slv storage upload ./my-file.jsonslv storage upload ./my-file.jsonBạn cũng có thể chỉ định đường dẫn remote 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 remote trong storage (mặc định: tên file) |
-r, --region | Khu vực storage (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 file
Tải file từ cloud 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 output cục bộ (mặc định: tên file gốc) |
-r, --region | Khu vực storage |
Liệt kê file
Liệt kê file trong storage:
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 storage |
-l, --limit | Số lượng file tối đa trả về |
Xóa file
Xóa file khỏi cloud 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 storage |
-y, --yes | Bỏ qua xác nhận |
Duyệt 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 | Alias | Mô tả |
|---|---|---|
slv storage upload [file] | Tải lên file | |
slv storage download [path] | slv storage dl | Tải xuống file |
slv storage list | slv storage ls | Liệt kê file |
slv storage delete [path] | slv storage rm | Xóa file |
slv storage usage | Hiển thị sử dụng và hạn mức | |
slv storage product | Duyệt các gói storage | |
slv storage upgrade [quantity] | Thay đổi dung lượng storage |