Skip to content

[POC] idea for docker data volume containers backup/restoration #6556

@paimpozhil

Description

@paimpozhil

Hi Everyone ,

For last 3 weeks I have been moving some of our websites into Docker based environment for easier future migrations and adding a slightly higher security .

I am heavily using the data volume containers though it is immensely helpful ,
docker at the moment does not make it easy to move the data containers around.

We need to export/save the containers to new host then Id rsync the data again , then reset permissions,etc . it was a pain and there is no existing tools to easily backup / migrate the data volumes.

I have created this for my own use
https://github.com/paimpozhil/docker-volume-backup

I have packed the metadata of the container into tar file itself so the restoration is easy.

I have 0 Python experience this is my first python code ever, I however found that your Docker-py API was easy to use so I tried to create a QUICK n Dirty solution for my use.

This seemingly works but I would suggest someone to integrate some feature just like this in Docker itself so it is useful for people like me .

One tool that does this is https://github.com/discordianfish/docker-backup but does not work may be due to recent API changes.

I took that as an inspiration however I do not know 'Go-lang' and still wanted to do something for the docker community.

Disclaimer :

I'm a docker newbie.

English is not my first language / python is not my programming language either so please excuse grammer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions