Synchronizing timestamps

Advertisement

herold
Guest

Synchronizing timestamps

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.

Reply with quote

Advertisement

mak
Guest

Re: Synchronizing timestamps

martin 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).

Reply with quote

duerra
Donor
Joined:
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.
_________________
When you put everything into something, it means everything to you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

duerra wrote:

I would also like to see transfers based on file size.
I'll probably add this in the next version.

Reply with quote

Advertisement

You can post new topics in this forum