The easiest way to restore timestamps of files?

Kevin Korb kmk at sanitarium.net
Sun Apr 26 17:02:55 MDT 2015


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

- --archive --itemize-changes --size-only --dry-run
Obviously the last one is so you can confirm what it is going to do.

On 04/26/2015 06:08 PM, Frantisek Hanzlik wrote:
> Please, is possible (with rsync) re-create files timestamps? I mean
> something like choosing a "-T" in the program mirror- from it's man
> page e.g. there: 
> http://sunsite.univie.ac.at/textbooks/mirror/mirror.html#Flags
> 
> "Do not do any file transfers just force the time-stamps of any
> local files to be reset to be the same as the remote files.
> Normally only used when initialising a mirror that already contains
> files retrieved another way (e.g. from CDROM)."
> 
> This is the situation I have encountered several times - I have
> local files which was downloaded from internet archive via FTP or
> obtained somehow, these files have bad timestamp, and now I want
> use rsync for their synchronization with the remote rsync server
> and also correct their bad timestamp - of course without
> re-downloading. Is it possible?
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	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

iEYEARECAAYFAlU9bp8ACgkQVKC1jlbQAQcgBwCg4I0VpJfxWYWCBiLJo2qKMWpj
6ooAoJIqtmC6juv7KmqHSCWeUtRielEE
=mumk
-----END PGP SIGNATURE-----


More information about the rsync mailing list