I would like to be able to duplicate the list of enabled systemd
units from one machine to another.
A systemd
unit is enabled or disabled based on the existence (or lack) of a sym-link. At this time, the best tool I've been able to think of is tree
or perhaps find
? So, in theory, I could script something up; but isn't there already a tool to do this?
In a perfect world, it would scan all the various directories where such symlinks are created (I know of 3: /etc/systemd /run/systemd ~/.config/systemd/user
) and render a readable file which could be used to replay the settings on another computer. Also useful for backup.