Giter Club home page Giter Club logo

storebackup-docker's Introduction

Open Issues Stars on GitHub Docker Stars Docker Pulls

Storebackup Docker Container

Execute

docker run -v '/home/:/data/source/' -v '/backup/:/data/destination/' raynigon/storebackup

Will create a Backup for the last 30 days of your '/home' folder to '/backup'. Take a look at the enviroment variables and check how to adjust them for your needs.

Configuration

StoreBackup Config

Take a look at http://www.nongnu.org/storebackup/en/ to get in touch with the underlying storebackup configuration

Enviroment Variables

  • SERIES_NAME: The Name of this Series (default: default)
  • BACKUP_DURATION: The Amount of time how long the Backups should be keept (default: 30d)
  • BACKUP_DURATION_FIRST_OF_WEEK: How long the first backup of a week should be stored(default: 30d)
  • BACKUP_DURATION_FIRST_OF_MONTH: How long the first backup of a month should be stored(default: 30d)
  • BACKUP_DURATION_DUPLICATES: How long backups of the same day should be stored(default: 7d)
  • BACKUP_MIN_NUMBER: Minimal number of Backups which should be keept (default: 1)
  • BACKUP_MAX_NUMBER: Maximal number of Backups which should be keept (default: 999999)
  • EXCLUDE_DIRS: Relative Paths of Dirs which should not be backuped

Example:

docker run \
  -v '/home/:/data/source/' \
  -v '/backup/:/data/destination/' \
  -e BACKUP_DURATION=90d \
  -e BACKUP_DURATION_FIRST_OF_WEEK=365d \
  -e BACKUP_MIN_NUMBER=120 \
  raynigon/storebackup

Will backup your data for the last 90 days. There will be at least 120 backups and the first backup of a week will be saved for a year.

Compose

You can use the container also with Docker Compose.

Example:

storebackup:
  image: raynigon/storebackup
  container_name: StoreBackup
  restart: always
  volumes:
    - '/home/:/data/source/'
    - '/backup/:/data/destination/'
  environment: 
    - SERIES_NAME=Home
    - BACKUP_DURATION_FIRST_OF_WEEK=120d
    - BACKUP_DURATION_FIRST_OF_MONTH=120d
    - BACKUP_DURATION_DUPLICATES=3d
    - BACKUP_MIN_NUMBER=15

storebackup-docker's People

Contributors

raynigon avatar

Watchers

James Cloos avatar

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.