Sign inSign up

corehelpers/azurebackup

By corehelpers

•Updated almost 3 years ago

Simple Docker Container to implement backup and restore for Azure Storage Tables

Image
0

10M+

corehelpers/azurebackup repository overview

⁠Execute Table Backup with the pre-compiled container

The engine is manifest based so build a new manifest with the following structure and launch the docker container. Multiple backups can be defined in one manifest file.

{
    "Id": "<<uuid>>",
    "Items": [
        {
            "Id": "<<uuid>>",
            "Name": "<<displayname>>",
            "Enabled": true,

            "Operation": "backup",
            "StorageType": "table",

            "TargetConnectionString": "<<ConnectionString where the backup should be stored>>",
            "TargetContainer": "<<Container the backup should be stored>>",            

            "SourceConnectionString": "<<ConnectionString where the data should be read from>>",

            "Excludes": [
                "<<Regex for tables to exclude>>"
            ],

            "FinishedHook": "<<Optional Finish Hook for monitoring>>"
        }
    ]
}

The docker container can be launched as follows:

docker run \
-e MANIFEST={{FILE or URL to the manifest}}
corehelpers/azurebackup:<<version>>

⁠Execute Table Restore with the pre-compiled container

The engine is manifest based so build a new manifest with the following structure and launch the docker container. Multiple backups can be defined in one manifest file.

{
    "Id": "<<uuid>>",
    "Items": [
        {
            "Id": "<<uuid>>",
            "Name": "<<displayname>>",
            "Enabled": true,

            "Operation": "restore",
            "StorageType": "table",

            "SourceConnectionString": "<<ConnectionString where the backup is stored>>",
            "SourceContainer": "<<Container the backup is stored>>",            

            "TargetConnectionString": "<<ConnectionString where the data should be restored to>>",
        }
    ]
}

The docker container can be launched as follows:

docker run \
-e MANIFEST={{FILE or URL to the manifest}}
corehelpers/azurebackup:<<version>>

⁠Build the backup container manually

Step 1: publish the runner into a dedicated directory

$: dotnet publish ./backup.runner/ -c Release -o ../publish/runner

Step 2: build the docker container

$: docker build -t corehelpers/azurebackup:manual -f ./Dockerfile ./publish/runner

Tag summary

Content type

Image

Digest

sha256:bde06cd2c…

Size

76.7 MB

Last updated

almost 3 years ago

docker pull corehelpers/azurebackup:0.9.9