I am running containers using Docker. I am taking snapshots of the container file system as diff from the container base using docker commit. I would also like to take a snapshot in a tar file that only stores files that have been modified to commit.
Using docker diff, I see which files have been modified. Using docker export, I get all the files in the container in tar. How to get tar file of only modified files from the database? Ideally, I could also exclude directories (e.g. /dev).
source
share