apt-clone
Clone/back up/restore the package state of a Debian-based system. tldr-pages
On Linux
Linux
Clone the package state of the current system into a specified directory
apt-clone clone path/to/directoryIdentifyCreate a clone file (.tar.gz) for backup purposes
apt-clone clone --destination path/to/backup.tar.gzIdentifyRestore the package state from a clone file
apt-clone restore path/to/backup.tar.gzIdentifyShow information about a clone file (e.g., the release, architecture)
apt-clone info path/to/backup.tar.gzIdentifyCheck if the clone file can be restored on the current system
apt-clone restore path/to/backup.tar.gz --destination path/to/restoreIdentify