s3cmd on Windows
Install and configure s3cmd on Windows to manage Nebula Block object storage.
Tip: The console generates a ready-to-paste
~/.s3cfgfor you, filled in with your endpoint and access keys. Open your workspace under Object Storage, click View, and go to the s3cmd tab. If you use it, you can skip the interactives3cmd --configurewalkthrough below and save the block it gives you as%USERPROFILE%\.s3cfg. See s3cmd on Linux and macOS for what each setting means.
1. Install s3cmd
Step 1: Check Python Installation
Ensure Python is installed by running:
python --versionIf Python is not installed, download and install it from Python Official Website.
Step 2: Upgrade pip
Run the following command to upgrade pip:
python -m pip install --upgrade pipStep 3: Install s3cmd
Run the following command to install s3cmd:
pip install s3cmdStep 4: Ensure s3cmd is Executable
By default, Windows may recognize s3cmd as a file without an extension instead of a Python script. Navigate to the following path:
If
s3cmdis present without a.pyextension, rename it tos3cmd.py.Add this location to your system environment variables (
Path).
Step 5: Verify Installation
Run:
If s3cmd does not execute correctly, open the s3cmd file and ensure the first two lines are:
If necessary, run s3cmd using:
Alternatively, create a s3cmd.bat file in the same directory as s3cmd.py with the following content:
Then, retry running:
2. Configure s3cmd
Run:
You will be prompted to enter the following details:
Test access with supplied credentials:
If the connection is successful, you will see:
Save settings:
Your configuration will be saved at:
3. Usage Examples
List Buckets
Create a Bucket
Delete an Empty Bucket
List Files in a Bucket
Upload a File to a Bucket
Example:
Upload a folder to a Bucket
Example:
Download a File from a Bucket
Example:
Delete a File
Batch Upload Files Example
Batch Download Files Example
or
Batch Delete Files Example
Last updated