---
title: "Discussion on \"CLI: Backing up and restoring file modification times\" | Hashnode"
description: "Discussion on \"CLI: Backing up and restoring file modification times\". I recently needed to keep the exact file modification times as a part of a git repository. Since git doesn't support such functionality out of the box, I used a simple combination of find and touch commands as a part of the pre-commit hook.\nHere are ..."
url: "https://hashnode.com/posts/cli-backing-up-and-restoring-file-modification-times/6332d7471b45803abe48f0ec"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CLI: Backing up and restoring file modification times](https://betterways.hashnode.dev/cli-backing-up-and-restoring-file-modification-times?utm_source=hashnode&utm_medium=feed)

I recently needed to keep the exact file modification times as a part of a git repository. Since git doesn't support such functionality out of the box, I used a simple combination of find and touch commands as a part of the pre-commit hook. Here are ...

Sep 27, 2022 · 3 min read · betterways.hashnode.dev  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Nick | BetterWays.dev](https://hashnode.com/@BetterWays)

@BetterWays · 🇪🇺

  
[View profile](https://hashnode.com/@BetterWays)

Full-stack polyglot and sysadmin, 25+ years in tech | Writing, building, and breaking things

Full-stack polyglot and sysadmin, 25+ years in tech | Writing, building, and breaking things BetterWays.dev - wiki, blog, guides, tools, ...

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
