Created
January 28, 2020 09:45
-
-
Save gnawux/1ed8b644cf93a291575ae1a18759f3d2 to your computer and use it in GitHub Desktop.
command line for sync mtime across hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find backup/ -type f |while read fname; do echo touch -c -t $(date --date=@$(stat -c %Y "${fname}") +%Y%m%d%H%M.%S) \"/volume2/share/${fname}\" ; done |ssh 192.168.7.127 bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment