Git Product home page Git Product logo

rsnapshot-docker-compose-backup's Issues

Backup not running containers

It should be possible to backup containers that are not running.
Currently the script crashes if it tries to create config for a container that is not running.
This is also needed for unit tests

Set Project Name

Currently this script finds only docker-compose container where the compose-project-name equals the folder name. This is the default.
It would be good to add an setting to change the project name

FR: Support $containerName as variable

We already support $serviceName, $containerID, $projectFolder, $volumes, $image and $projectName as variables in backup.ini.

The new variable $containerName would be useful in backup destination path names because it is unique (in contrast to the default $serviceName). The docker daemon does not allow two containers with the same name running at the same time.

The container's name is auto-generated by docker but can be overridden by setting container_name in the compose file.

1.0 release

The following things have to be done before the 1.0 release:

  • Release Package on PyPI (see #18 )
  • Test in a different Environment (@ku-we)

FR: Support all (four) valid names for compose files

The Compose Specification defines four valid names for compose files (https://docs.docker.com/compose/compose-application-model/).

The default path for a Compose file is compose.yaml (preferred) or compose.yml that is placed in the working directory. Compose also supports docker-compose.yaml and docker-compose.yml for backwards compatibility of earlier versions. If both files exist, Compose prefers the canonical compose.yaml.

As of now, only docker-compose.yml seems to be supported.

if "docker-compose.yml" in tree_element[2]:

All names matching the regular expression (docker-)?compose\.y(a)?ml should be suuported.

Use Docker Python Api

To improve the performance and redability of the Backup the python Libary from Docker should be used.
This libary is automaticly installed if docker-compose is installed, but in a few cases this libary is not in the import path, for example in virtual environments. Another reason could be, that a old version of docker-compose is installed that uses the Python2 Version of the libary.
To solve this Problem the current path should exist as a fallback alternative to find the container.

Convert backup_script to backup_exec and backup

A setting to convert backup_script calls to backup_exec and backup calls would be very helful in mutliple situations:

  1. backup calls have a better log output
  2. backup calls support incremental backups

The problem with this setting is, that the files that are created/changed by backup_script have to be recognized and copied to a temp folder. This is probably relativly complicated.

Update Readme

The Readme schould contain install instructions and the old parts of the readme should be deleted

Release Package on PyPI

The Package should be released on PyPI. The Package should automatically be updated when a new release is created.

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.