Topic "Synchronizing timestamps"

Author Message
herold

Guest


I want to synchronize local timestamps (just the timestamps-not the file contents) with the ones on a SFTP server.
The files are identical but the timestamps don't match.

I need a synchronize function that allows to set just the timestamps if the filesize is identical on both versions.

The need for this arises because I edit the files on different computers and use version control (Subversion) to keep the individual local copies up to date. This means that my local files have identical content but differing timestamps.

The workflow is as follows:
I do changes on one of the machines, upload them to the web server and commit them to the repository.
When I update the local copy on another machine from the repository, the timestamps of the updated files are set to the current time.
This is a problem for timestamp-based synchronize functions as remote files are falsely reported as not being up-to-date.

I am forced either to set the modification times by hand (a problem with Windows) or to download all changed remote files although they are already up to date, just to get the timestamps right.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
OK, I consider this. It sounds like reasonable functionality.
_________________
Martin Prikryl
herold

Guest


Thank you.
mak

Guest


prikryl wrote:
OK, I consider this. It sounds like reasonable functionality.


yes this would be great work. Timestamps must be same on local and remote machines either we use windows or *nix OS. You have to investigate MDTM command (getting & setting the files modification date & time on *nux).
duerra
[View user's profile]
Donor
Joined: 2004-10-06
Posts: 45
I would also like to see transfers based on file size.

Sometimes I may not have access to modify a file's time stamp because of directory permissions, but I have access to modify the file. In this case, I would like to be able to transfer files based on their size.
_________________
duerra wrote:
When you put everything into something, it means everything to you.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
duerra wrote:
I would also like to see transfers based on file size.

I'll probably add this in the next version.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License