cloud_files_upload.bash is a Bash script that simplifies uploading files to Azure Blob Storage. It provides a command-line interface for quick and easy file transfers to Azure cloud storage.
- Azure CLI: Ensure Azure CLI is installed and configured on your system.
- Bash: This script is a Bash script, so a Unix-like environment is feature.
- Download or clone the cloud_files_upload repository.
- Make the script executable:
chmod +x cloud_files_upload.bash
- (Optional) Add the script to your PATH for easy execution from any directory.
If you want to run cloud_files_upload from any directory, add the installation directory to your PATH:
- Open your shell profile file (like
~/.bashrc
,~/.zshrc
, etc.). - Add the following line:
export PATH="$PATH:$HOME/.local/bin"
- Save the file and restart your terminal or run
source ~/.bashrc
.
Basic command structure:
./cloud_files_upload.bash
./cloud_files_upload.bash file1.txt
- ./cloud_files_upload.bash /path/to/your/file.txt
- ./cloud_files_upload.bash /path/to/first/file.txt /path/to/second/file.txt
- Azure CLI Not Found: Ensure Azure CLI is installed and in your system's PATH.
- Authentication Issues: Run
az login
to authenticate your Azure CLI session. - File Not Found: Check the file path and ensure the file exists.
- Permission Denied: Run the script with appropriate permissions, or use
sudo
if necessary.
- Slow Upload Speed: This can depend on your network connection and Azure's current performance.