On Fri, 14 Mar 2025, Russell L. Harris wrote:
On Fri, Mar 14, 2025 at 02:07:53PM +0800, tim wade wrote:
I plan to make increment backup for my home dir.
It's currently in the size of 1xx GB.
I use git. I keep terminal open running a ssh connection open to the
backup system. Whenever I wish to save the state of the system, I
switch to the terminal and execute git commit. To check the previous
state of a file, Emacs provides git-timemachine.
Simple and miminal hassle.
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)
For a homedir, ownership may not be a problem but permissions might be.
IIRC, for example, ssh (and sshd) will not work properly if the
permissions on ~/.ssh are wrong.
git will also not backup (or even see) extended attributes.