Sithuk / ubuntu-server-zfsbootmenu

Ubuntu zfsbootmenu install script
123 stars 28 forks source link

Recommendation: Only exclude Docker `overlay2` from snapshots #46

Closed andrewvaughan closed 4 months ago

andrewvaughan commented 4 months ago

The /var/lib/docker folder contains some things people may want to back up, such as the volumes directory, especially, if their configurations use named volumes.

Generally, the only true "large" directory in the folder that is rebuildable is the overlay2 directory (as far as I'm aware) which contains all of your image layers. I'm not an expert on how Docker works in its folder directory, so don't take this as expert advice, but it seems like only excluding the docker/overlay2 folder would be a better choice for snapshot exclusion than the entire docker configuration.