diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-22 03:17:25 -0800 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-22 03:17:25 -0800 |
commit | c808bb6ee7f77f077308a1f06f63dbee6a928f6d (patch) | |
tree | 5ead34a0705afdf19cbe3fe4188c9e8b41f5a7b7 /upd | |
parent | 21368d3206f10dc4b5f3223965eea98446285709 (diff) |
git restore-mtime to prevent rsync sync actually not modified files
Diffstat (limited to 'upd')
-rwxr-xr-x | upd | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -28,6 +28,13 @@ backup () { # Push ka branch to codeberg or any future alternative website for mirroring. Needed for public codes/data, considering my death may result in all copies on my computers being lost. [ "$branch" = ka ] && git push done + # git checkout will change mtime, need to change back so rsync won't think it needs to backup these files + # https://stackoverflow.com/q/1964470/9008720 + # https://stackoverflow.com/q/21735435/9008720 + # https://github.com/MestreLion/git-tools + # aur/git-tools-git + git restore-mtime + ( umask 077 # backup ka cfgl |