This is a bash-based command-line interface (CLI) tool that allows users to quickly upload files to a specific cloud storage, providing a seamless upload experience similar to a popular storage services with a simple set of commands and options for users.
Before using the CLI Cloud Upload Tool, ensure you have the following prerequisites installed on your system:
-
Bash
-
Download and configure the AWS CLI (Amazon Web Service Command Line Interface)
-
Cloud storage account (e.g., AWS S3)
-
API keys or credentials for the cloud storage service
- Clone the Github Repo.
git clone https://github.com/Stefanie-A/CloudDrop.git
cd cloudDrop
- Make the script executable:
chmod +x upload.sh
- Configuration:
Make sure AWS CLI is configured using:
aws configure
To upload a file to the cloud storage, use the following command:
./upload.sh path/to/your/file
Usage Examples Upload a single file:
./upload.sh /path/to/file.txt <bucket_name>
Upload multiple files:
./upload.sh /path/to/file1.txt /path/to/file2.jpg /path/to/file3.pdf <bucket_name>
Ensure you have made the script executable: chmod +x upload.sh. Make sure you are in the correct directory where upload.sh is located.
Ensure you have the necessary permissions to execute the script: chmod +x upload.sh. Run the script with elevated privileges if required: sudo ./upload.sh.
Verify that your AWS credentials configured.
Check the file path you provided to ensure it is correct and the file exists. Use absolute paths if relative paths cause issues.
Check the error message for specific details about why the upload failed. Verify your cloud storage configuration and ensure the bucket or container exists. Ensure your network connection is stable.