Do not log non-regular files

Hi,

I’m backing up the root partition, in case the system goes rogue or something. I have excluded via filters the typical non-files like /proc, /sys etc, but there are some others which are not that easy to filter. Specifically, I have docker installed on the system, and it seems to create all kinds of sockets in var/lib/docker/overlay2. But I think not all of overlay2 are sockets, some are regular files.

What happens is that the logs are polluted with many lines of Skipped non-regular file var/lib/docker/overlay2/03cafea1fe7deccd4f66ab6527e8c56450c9de130740c518cad1675584efe198/...

Is there a flag to turn off these logs ? Or an easier version to ignore them ? (rather than grep my log files)

Thank you !

1 Like

Why are you backing up that in the first place? backup data containers operate on, not overlays or other discardable stuff.

I am backing up the whole of / (root partition), with a few exceptions.

I am not too familiar with the structure of docker folders. Do you think it is safe to ignore the whole of var/lib/docker ?