mirror of
https://codeberg.org/vlw/cloud-backup.git
synced 2025-09-13 17:43:42 +02:00

* wip(22w9a): sql param fix * wip(22w9b): add azure * wip(22w9c): add single item backup * wip(22w10a): add logger * wip(22w11a): add aws support * Update README.md
28 lines
No EOL
404 B
Bash
Executable file
28 lines
No EOL
404 B
Bash
Executable file
install () {
|
|
python3 -m pip install $1
|
|
}
|
|
|
|
install python-dotenv
|
|
|
|
# Install Python libraries for cloud provider
|
|
case $1 in
|
|
"gcs")
|
|
install google-cloud-storage
|
|
;;
|
|
|
|
"azure")
|
|
install azure-storage-blob
|
|
;;
|
|
|
|
"aws")
|
|
install boto3
|
|
;;
|
|
|
|
*) ;;
|
|
esac
|
|
|
|
# Create .env file if it doesn't exist
|
|
if [ ! -f ".env" ]; then
|
|
cp .env.example .env
|
|
sed -i "s/SERVICE_NAME=\"\"/SERVICE_NAME=\"$1\"" .env
|
|
fi |