Skip to main content

Working with Buckets & Objects

To store data in OSS, you must first create a bucket (storage container) with a unique name. Use any S3-compatible tool to manage your buckets and objects.

Creating Buckets

Bucket Naming Rules

  • 3-63 characters long
  • Lowercase letters, numbers, and hyphens only
  • Must start and end with alphanumeric character
  • Globally unique across all OSS users

Using GUI Tools

S3Browser (Windows):

  1. Open S3Browser (see setup guide)
  2. Click New Bucket button
  3. Enter bucket name and click Create

![Figure needed: Screenshot of S3Browser bucket creation dialog]

CloudBerry Explorer (Cross-platform):

  1. Open CloudBerry Explorer (see setup guide)
  2. Click New Bucket icon
  3. Enter bucket name and create

![Figure needed: Screenshot of CloudBerry bucket creation interface]

Using Command Line

# AWS CLI
aws s3 mb s3://my-bucket --endpoint-url https://<customer-id>.oss.swiftserve.com

# S3cmd
s3cmd mb s3://my-bucket

Managing Objects

Upload Files

GUI Tools:

  • Drag & Drop: Drag files from your computer to the tool window
  • Upload Button: Use the upload button to select files

Command Line:

# Upload single file
aws s3 cp file.txt s3://my-bucket/ --endpoint-url https://<customer-id>.oss.swiftserve.com

# Upload directory
aws s3 sync ./folder s3://my-bucket/folder/ --endpoint-url https://<customer-id>.oss.swiftserve.com

Download Files

GUI Tools:

  • Drag & Drop: Drag files from OSS to your local computer
  • Right-click: Right-click object → Download

Command Line:

# Download single file
aws s3 cp s3://my-bucket/file.txt ./ --endpoint-url https://<customer-id>.oss.swiftserve.com

# Download directory
aws s3 sync s3://my-bucket/folder/ ./folder/ --endpoint-url https://<customer-id>.oss.swiftserve.com

Delete Objects

GUI Tools:

  • Select objects and press Delete key
  • Right-click → Delete

Command Line:

# Delete single object
aws s3 rm s3://my-bucket/file.txt --endpoint-url https://<customer-id>.oss.swiftserve.com

# Delete all objects in folder
aws s3 rm s3://my-bucket/folder/ --recursive --endpoint-url https://<customer-id>.oss.swiftserve.com

Best Practices

Organization

company-data/
├── documents/2024/
├── images/products/
├── backups/daily/
└── logs/application/

Security

  • Use appropriate permissions (Read/Read-Write/Full Control)
  • Don't make buckets public unless necessary
  • Regularly rotate access keys
  • Monitor access logs

Performance

  • Use multipart upload for files >100MB
  • Organize with logical folder structures
  • Consider lifecycle policies for automatic cleanup

Common Operations

TaskS3BrowserCloudBerryAWS CLI
Create bucketNew Bucket buttonNew Bucket iconaws s3 mb
Upload fileDrag & dropDrag & dropaws s3 cp
Download fileRight-click → DownloadDrag to localaws s3 cp
Delete objectRight-click → DeleteDelete keyaws s3 rm
Sync folderFolder sync featureSynchronizeaws s3 sync

Troubleshooting

IssueSolution
Bucket already existsUse a different bucket name
Access deniedCheck credentials and permissions
Upload failedVerify file size and network connection
Slow transfersUse multipart upload for large files

For detailed tool setup, see S3-Compatible Tools.