-----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. ke...@futurequest.net (work) Orlando, Florida k...@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----- -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html