Encryption and Compression
This section guides you through configuring encryption and compression for S3-compatible storage using the MinIO Client (mc
).
Encryption ensures data security, while compression optimizes storage usage.
Step 1: Install MinIO Client
The MinIO Client allows you to interact with your MinIO server. The MinIO Server provides an S3-compatible API and supports core S3 features.
The MinIO Server provides an S3-compatible API and supports core S3 features. Choose one of the following installation methods for Linux:
RPM (RHEL-based Systems)
Download the latest stable MinIO RPM package. Install the package using
dnf
:
DEB (Debian/Ubuntu Systems)
Download the appropriate
.deb
package from the MinIO Downloads Page. Install the package usingdpkg
:
Binary Installation (Universal Method)
Download the MinIO Server binary. Make the binary executable and move the binary to a directory in your system PATH:
Installing MinIO Client (mc)
The MinIO Client allows command-line interaction with your MinIO server.
Download the MinIO Client binary:
Make the binary executable:
Move the binary to a directory in your system PATH:
Verify the installation:
For other operating systems, refer to this resource.
Step 2: Set Up mc Alias
Set an alias for your server:
Replace
<BLIMP_DOMAIN>
with the domain link from the Blimp output.Replace
<ACCESS_KEY>
and<SECRET_KEY>
with your credentials.
Example:
Verify the alias setup by listing buckets:
Step 3: Create a Bucket
Create a bucket for storing encrypted and compressed data:
Confirm the bucket creation by listing the contents:
Step 4: Upload Files with Compression
Copy files or directories recursively to the bucket, applying compression:
Example commands:
List the contents of the bucket to verify the upload:
Step 5: Test Encryption
Ensure that the uploaded files are encrypted on the server by verifying through:
Replace
<FILE_NAME>
with the name of any uploaded file.Check the metadata to confirm encryption.
To download and decrypt, use:
Notes
Recursive Upload: Use the
--recursive
flag to upload entire directories.Bucket Verification: Always verify the presence of the bucket and its contents after each operation.
Compression: Compression is applied automatically during file transfer. Ensure that the server supports compression for optimal results.
Encryption: Encryption is configured at the server level. Confirm the settings in your ZS3Server configuration to enable encryption.
Last updated