Created a tar.gz inside when booted up into a USB Xubuntu.
sudo tar -cvpzf fresh-ubuntu-server.tar.gz --one-file-system /media/xubuntu/cea0fa37-84bc-4edb-8ce1-0fac03b717db/
To restore the system to this archive, you want to reformat the system partition. Unmount the /media
.
Figure out which /dev/sda*
is the system partition:
sudo parted /dev/sda print