From: greg Date: 2006-11-15T06:06:32+09:00 Subject: Re: preserve mtime when using FTP? Unless I am mistaken I don't think sftp will preserve the file metadata. I don't know how ssh would either. sftp and ftp use File.open( local_path, "wb" ) { |f| f.write contents } After looking through the FileUtils source which can preserve metadata, I see it just uses File.utime to set the metadata, so that is what I will try.