Code Monkey home page Code Monkey logo

docker-auto-backup's People

Contributors

bur4kbey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-auto-backup's Issues

Add direct container backups with pre and post script support

Goal

The objective here is to establish a system for direct backups from containers as specified in the configuration file, while also enabling the execution of pre and post scripts within each container.

Implementation

  • Read and parse the configuration file.
  • Execute pre_build_script and post_build_script scripts for each container, if specified.
  • Retrieve the specified files from each container to the backup folder.
  • Document the changes to the README.md

Why?

Consider a scenario where you have a running PostgreSQL container and you require periodic backups. Attempting to directly volume the path to the backup container might inadvertently include unnecessary binaries, bloating the backup file size. With this feature, you can utilize pre-build scripts to generate a backup from your PostgreSQL instance and then backup the generated SQL file, ensuring only essential data is included.

Example Configuration File

containers:
  - name: service-1
    files:
      - /data/.:/backup/service-1/data

  - name: service-2
    files:
      - /data/.:/backup/service-2/data
    pre_build_script: |
      touch /root/logs
      echo "pre-build script ran" >> /root/logs
    post_build_script: |
      echo "post-build script ran" >> /root/logs

Add push notifications using ntfy

Goal

The goal of this issue is to implement push notifications using ntfy whenever the backup system encounters issues uploading the generated backup to the desired cloud providers.

Specifics:

  • Send a push notification if the backup upload fails.
  • Send a push notification if the backup upload succeeds.

Implementation

  • Send HTTP/HTTPS requests to ntfy servers.
  • Support custom CA files for ntfy servers using self-signed certificates.

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.