Giter Club home page Giter Club logo

dotnet-mysqlbk-to-azure-blobs's Introduction

dotnet-mysqlbk-to-azure-blobs

dotnet shell application to take mysql backup and upload to azure blobs

How to execute

Install dotnet on ubuntu

wget https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update

sudo apt-get install dotnet-sdk-3.1
sudo apt-get install aspnetcore-runtime-3.1

git clone https://github.com/Whistler092/dotnet-mysqlbk-to-azure-blobs.git
cd dotnet-mysqlbk-to-azure-blobs

dotnet publish --configuration Release
cd /BlobQuickstartV12/bin/Release/netcoreapp3.1/publish/
chmod 777 backup.sh
export AZURE_STORAGE_CONNECTION_STRING="<yourconnectionstring>"
dotnet BlobQuickstartV12.dll

Tutorial how to take out your AZURE_STORAGE_CONNECTION_STRING

Result should look like this

whistler@tiendas:~/dotnet/publish$ dotnet BlobQuickstartV12.dll
Azure Blob storage v12 - .NET quickstart sample

containerName: mysqlbackup-1052020-162848
containerClient mysqlbackup-1052020-162848
Uploading to Blob storage as blob:
	 https://myurl.blob.core.windows.net/mysqlbackup-1052020-162848/all_databases.sql

Listing blobs...
	all_databases.sql
Backup finished

Source

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-dotnet

dotnet-mysqlbk-to-azure-blobs's People

Contributors

whistler092 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.