Clone/backup/restore the package state of a Debian-based system. More information: https://github.com/mvo5/apt-clone.
apt-clone clone {{path/to/directory}}
tar.gz) for backup purposes:apt-clone clone --destination {{path/to/backup.tar.gz}}
apt-clone restore {{path/to/backup.tar.gz}}
apt-clone info {{path/to/backup.tar.gz}}
apt-clone restore {{path/to/backup.tar.gz}} --destination {{path/to/restore}}