Giter Site home page Giter Site logo

clonezilla's Introduction

Clonezilla

Backup and restore drives with clonezilla

Background

I run a set of Raspberry PIs and I do daily backups with bacula. Additionally I do a monthly complete backup of the sd-cards with clonezilla. I used to do this in a virtual machine, but for convinience I built this docker image. Now I just have to connect the sd-card reader to my server and backup the images to an nfs share. Works as well with any other drives ;)

Usage

Build container

Either use the provided compose file,

git clone https://github.com/theniwo/clonezilla
docker-compose -f clonezilla/docker-compose.yml up -d

or build your compose file yourself according to this template:

version: '2'

volumes:
  data:
  logs:

services:
  app:
    image: theniwo/clonezilla:latest
    container_name: clonezilla
    hostname: clonezilla
    mem_limit: "2G"
    restart: unless-stopped
    privileged: true
    ports:
      - "2222:22"
    environment:
      - TERM=xterm
    volumes:
      - /dev:/dev
      - <LOCAL FOLDER OR NFS SHARE>:/home/partimag:shared
      - data:/root
      - logs:/var/log

otherwise use docker run command

docker run -d \
        --name clonezilla \
        --hostname clonezilla \
        --restart unless-stopped \
        --memory 128M \
        --privileged=true \
        -e TERM=xterm \
        -e TZ=Europe/Berlin \
        -v /dev:/dev \
        -v clonezilla_data:/root \
        -v clonezilla_logs:/var/log \
        -v <BACKUPDIR>:/home/partimag:shared \
        theniwo/clonezilla:latest

Start clonezilla

docker exec -it clonezilla clonezilla

or

ssh root@IP -p 2222

The root password is toor

If you choose device-image select skip Use existing /home/partimag when asked for the mountpoint.

NOTES

drawing

The latest version will be updated regularly.

TODO

  • SSH support
  • Include fail2ban
  • Write docker run command
  • Print logfile to stdout
  • Make a version for arm architecture

CONTACT

[email protected]

LINKS

Docker Hub

Git Hub

clonezilla's People

Contributors

theniwo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

clonezilla's Issues

Running on Arm64 ?

Hi,

I'm been looking for a docker image for Clonezilla a long time, and thanks for created this image.
I got an error when the container is running on RPI4.

standard_init_linux.go:228: exec user process caused: exec format error

Can you advise how to fix this ?

Thanks

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.