partimage

backup partitions into a compressed image file

Debian Debian
RUN apt-get update && \ apt-get install -y partimage
Ubuntu
RUN apt-get update && \ apt-get install -y partimage
Alpine
RUN apk add partimage
Arch Arch Linux
RUN pacman -S --noconfirm partimage
Raspbian
RUN apt-get update && \ apt-get install -y partimage
click the source code to copy install partimage on any operating system with command-not-found.com