backup-mtime: print out a shell script to restore mtimes to the current state

This commit is contained in:
neingeist 2023-08-12 21:10:47 +02:00
parent a4d7f1d215
commit 03d96732eb

7
backup-mtime Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
# print out a shell script to restore mtime to the current state
#
# (may need gnu coreutils.)
#
find "$@" -exec \
stat --format="touch --no-dereference -m -d '%y' '%n'" {} \;