Note: before packing, you may need to *crawl* filesystem to have effective local hash database (HashDB)
~~~
# hashget -p /var/lib/lxc/delme/rootfs/
# hashget -p /var/lib/lxc/mydebian/rootfs/
~~~
This makes two files, hashget-exclude and .hashget_restore.
#### hashget-exclude*
(in homedir of current user, often root)
exclude file lists files which can be recovered later (re-downloaded from the web resources, such as http://snapshot.debian.org)
**hashget-exclude**
exclude file lists files which can be recovered later (re-downloaded from the web resources, such as https://snapshot.debian.org/ or https://kernel.org/)
#### .hashget_restore
File created in homedir of current user. Could be overriden with -X option. Same option should be given to `tar` command for packing.
**.hashget_restore**
(in root of virtual machine filesystem). Has all info (URLs) needed to download proper files and restore files which were skipped by tarring -X hashget-exclude
~~~
tar -czf /tmp/rootfs.tar.gz -C /var/lib/lxc/mydebian/rootfs/ -X /root/hashget-exclude .