On Thu, Aug 31, 2017 at 12:50 PM, Mike Small <sma...@sdf.org> wrote: > wor...@alum.mit.edu (Dale R. Worley) writes: > >> I have a cron job which commits my home directory into a Git repository >> every minute. Surprisingly, this puts no noticeable load on the >> computer. > > How do you handle file permissions? E.g. .ssh directory contents or PGP > key files having restricted permissions and a git checkout pulling them > out of the repository with more lax default permissions based on your > umask (at least I think that's what it does). IIRC Joey Hess wrote some > kind of tool to use git to track /etc changes and had to add something > on top to deal with permissions and file ownership. I'd think you'd need > to do something similar.
That would be etckeeper which I've used for some time. It does have a "-d" argument that can be used to specify directories other than /etc. I'm not sure what would happen if you pointed it at your home directory. Bill _______________________________________________ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss