Settings file times only

Kevin Korb kmk at sanitarium.net
Wed Apr 11 12:16:06 MDT 2012


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

- --times --size-only --itemize-changes
check it out first with --dry-run

On 04/11/12 14:14, James Moe wrote:
> 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.
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+FymUACgkQVKC1jlbQAQeqZwCgkF2FZyk9pm840uGvUrVVuk9B
KHEAoNSQdgoRxAqyzwF9DQ7t46SIXU/9
=XOUT
-----END PGP SIGNATURE-----


More information about the rsync mailing list