Settings file times only

James Moe jimoe at sohnen-moe.com
Wed Apr 11 12:14:20 MDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
  I restored a filesystem by using rsync to copy directories and files
from a backup volume to the newly recreated volume. All of the
re-created files were given the current date and time rather than the
original file's timestamp. I am sure there was a way to prevent that
from happening.
  Is there a way to use rsync to set the timestamps of the
destination's file (and directories) to the source's timestamps? I do
not wish to copy any files. All that needs to match is the filename,
new or deleted files are ignored.

- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+FyfwACgkQzTcr8Prq0ZNinACfcvU/4wGpX8ApKKblxe5jlIf8
cVoAoJAD1VQR7kH+GOfwh9nDgtvxt3MR
=y0QD
-----END PGP SIGNATURE-----


More information about the rsync mailing list