The first step has already been taken. Version 7.0.19 already makes the backup contain all the files of the packages with the installed version.
That was easy, I took advantage of an apt feature that allows you to download packages without installing them.
Now for the regeneration. I think that will be a little more complicated.