{"id":13587571,"url":"https://github.com/theniwo/clonezilla","last_synced_at":"2025-04-07T22:31:23.454Z","repository":{"id":176042383,"uuid":"278849066","full_name":"theniwo/clonezilla","owner":"theniwo","description":"Backup and restore drives with clonezilla ","archived":false,"fork":false,"pushed_at":"2021-10-30T22:01:06.000Z","size":51,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-02-13T21:52:25.136Z","etag":null,"topics":["backup","clone","clonezilla","docker","docker-compose","restore-drives","sd-cards"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theniwo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGEFILE","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-07-11T11:34:54.000Z","updated_at":"2024-02-13T21:52:28.088Z","dependencies_parsed_at":null,"dependency_job_id":"44838616-c017-4447-b6e9-7f2b50723150","html_url":"https://github.com/theniwo/clonezilla","commit_stats":null,"previous_names":["theniwo/clonezilla"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theniwo%2Fclonezilla","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theniwo%2Fclonezilla/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theniwo%2Fclonezilla/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theniwo%2Fclonezilla/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theniwo","download_url":"https://codeload.github.com/theniwo/clonezilla/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247740768,"owners_count":20988265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","clone","clonezilla","docker","docker-compose","restore-drives","sd-cards"],"created_at":"2024-08-01T15:06:16.246Z","updated_at":"2025-04-07T22:31:23.153Z","avatar_url":"https://github.com/theniwo.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Clonezilla\n\nBackup and restore drives with clonezilla\n\n# Background\n\nI run a set of Raspberry PIs and I do daily backups with bacula.\nAdditionally I do a monthly complete backup of the sd-cards with clonezilla.\nI used to do this in a virtual machine, but for convinience I built this docker image.\nNow I just have to connect the sd-card reader to my server and backup the images to an nfs share.\nWorks as well with any other drives ;)\n\n## Usage\n\n### Build container\n\nEither use the provided compose file,\n```\ngit clone https://github.com/theniwo/clonezilla\ndocker-compose -f clonezilla/docker-compose.yml up -d\n```\n\nor build your compose file yourself according to this template:\n```\nversion: '2'\n\nvolumes:\n  data:\n  logs:\n\nservices:\n  app:\n    image: theniwo/clonezilla:latest\n    container_name: clonezilla\n    hostname: clonezilla\n    mem_limit: \"2G\"\n    restart: unless-stopped\n    privileged: true\n    ports:\n      - \"2222:22\"\n    environment:\n      - TERM=xterm\n    volumes:\n      - /dev:/dev\n      - \u003cLOCAL FOLDER OR NFS SHARE\u003e:/home/partimag:shared\n      - data:/root\n      - logs:/var/log\n```\notherwise use docker run command\n\n```\ndocker run -d \\\n        --name clonezilla \\\n        --hostname clonezilla \\\n        --restart unless-stopped \\\n        --memory 128M \\\n        --privileged=true \\\n        -e TERM=xterm \\\n        -e TZ=Europe/Berlin \\\n        -v /dev:/dev \\\n        -v clonezilla_data:/root \\\n        -v clonezilla_logs:/var/log \\\n        -v \u003cBACKUPDIR\u003e:/home/partimag:shared \\\n        theniwo/clonezilla:latest\n```\n\n### Start clonezilla\n\n```\ndocker exec -it clonezilla clonezilla\n```\nor\n```\nssh root@IP -p 2222\n```\n\nThe root password is `toor`\n\nIf you choose _device-image_ select _skip Use existing /home/partimag_ when asked for the  mountpoint.\n\n\n**NOTES**\n\u003c!---\n\t\u003cpre\u003e\n\tScrolltext\n\t\u003c/pre\u003e\n--\u003e\n\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Infobox_info_icon.svg/1200px-Infobox_info_icon.svg.png\" alt=\"drawing\" width=\"20\"/\u003e\n\nThe latest version will be updated regularly.\n\n**TODO**\n\n  - [X] SSH support\n  - [ ] Include fail2ban\n  - [X] Write docker run command\n  - [ ] Print logfile to stdout\n  - [ ] Make a version for arm architecture\n\n**CONTACT**\n\n[disp@mailbox.org](mailto:disp@mailbox.org)\n\n**LINKS**\n\n[Docker Hub](https://hub.docker.com/repository/docker/theniwo/clonezilla)\n\n[Git Hub](https://github.com/theniwo/clonezilla)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheniwo%2Fclonezilla","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheniwo%2Fclonezilla","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheniwo%2Fclonezilla/lists"}