Hi,

On Sat, Mar 15, 2025 at 01:18:45PM -0700, David Christensen wrote:
> On 3/15/25 12:50, Tim Woodall wrote:
> > git fails to preserve ownership, permissions or timestamps. While this
> > may not be relevant to your usecase, for example backing up /etc would
> > be catastrophic (which is why we have etckeeper)
> 
> I am curious -- if I make my /etc directory tree into a version control
> system working directory (Git or otherwise), please explain how this would
> be catastrophic.

/etc has things in it which require specific ownership and permissions.
These aren't stored in git or in many other version control systems. It
will be fine until you actually restore anything, at which point the
files will get ownership/group of your user and mode 0644 or 0755
depending upon whether they were executable or not when committed.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to