Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theniwo/clonezilla
Backup and restore drives with clonezilla
https://github.com/theniwo/clonezilla
backup clone clonezilla docker docker-compose restore-drives sd-cards
Last synced: 11 days ago
JSON representation
Backup and restore drives with clonezilla
- Host: GitHub
- URL: https://github.com/theniwo/clonezilla
- Owner: theniwo
- License: mit
- Created: 2020-07-11T11:34:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-30T22:01:06.000Z (about 3 years ago)
- Last Synced: 2024-02-13T21:52:25.136Z (9 months ago)
- Topics: backup, clone, clonezilla, docker, docker-compose, restore-drives, sd-cards
- Language: Shell
- Homepage:
- Size: 49.8 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGEFILE
- License: LICENSE
Awesome Lists containing this project
README
# 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
- :/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 :/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**
The latest version will be updated regularly.
**TODO**
- [X] SSH support
- [ ] Include fail2ban
- [X] Write docker run command
- [ ] Print logfile to stdout
- [ ] Make a version for arm architecture**CONTACT**
[[email protected]](mailto:[email protected])
**LINKS**
[Docker Hub](https://hub.docker.com/repository/docker/theniwo/clonezilla)
[Git Hub](https://github.com/theniwo/clonezilla)