Coder Social home page Coder Social logo

restic-unattended's Introduction

Hi there! I'm Mark Dumay

Mark Dumay is managing partner and owner of Squadra Analytics, a boutique consulting firm based in the Netherlands. With nearly 20 years of experience, Mark has helped numerous clients in Utilities, Telecom, and Wholesale to get more value from data and analytics.

Mark holds a Master in Computer Science from Delft University of Technology and is a certified Lean Six Sigma Black Belt. He maintains several open-source repositories on GitHub focused on Hugo, Synology, and Docker.

https://github.com/markdumay/ https://github.com/markdumay/ https://github.com/markdumay/ https://github.com/markdumay/

restic-unattended's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar markdumay avatar

Stargazers

 avatar

Watchers

 avatar

restic-unattended's Issues

Fix output of list command

The list command output is malformed and needs to be reformatted.

local:/$ restic-unattended list
VARIABLE            	SET	DESCRIPTION                                                                 
B2_ACCOUNT_ID_FILE  	Yes	Name of file containing the Account ID or applicationKeyId for Backblaze B2	
B2_ACCOUNT_KEY_FILE 	Yes	Name of file containing the Account Key or applicationKey for Backblaze B2 	
RESTIC_PASSWORD_FILE	Yes	Name of file containing the restic password                                	
RESTIC_REPOSITORY   	Yes	Location of the repository   

Build restic from source in Dockerfile

The Docker image restic/restic does not use the latest Alpine image by default. Compiling the binary from source and using a version-tracked Alpine image should address that. The relevant documentation can be found here.

Fix build error on ubuntu 20.04

The generated docker-compose file has an invalid CPU value, crashing the build runner on GitHub. Below YML is an extract.

    deploy:
      resources:
        limits:
          cpus: '^A'
          memory: 100M
        reservations:
          cpus: '0.05'
          memory: 6M

The offending code is most likely caused by generate_config() in dbm.sh:

generate_config() {
    [ "${command}" = 'dev' ] && base_cmd="${DOCKER_RUN} ${docker_dev}" || 
        base_cmd="${DOCKER_RUN} ${docker_prod}"
    # fix incorrect CPU value (see https://github.com/docker/compose/issues/7771)
    cmd="${base_cmd} config | sed -E \"s/cpus: ([0-9\\.]+)/cpus: '\\1'/\""

    # replace tag if applicable
    if [ -n "${tag}" ]; then
        escaped_tag=$(escape_string "${tag}")
        cmd="${cmd} | sed -E 's|^    image: .*|    image: ${escaped_tag}|g'"
    fi

    echo "${cmd}"
}

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.