Displaying 1 result from an estimated 1 matches for "modifieddate".
Did you mean:
modified_at
2009 Jan 10
1
Implementing a conditional branch within rsync based on modified time of a file
...delete any and all new files created on a client since the last sync.
The best solution I can envision is to write a shell script (or modify the rsync source) which would alter step 1 above to the following:
global variable lastSync; //last synchronization for this client
function syncFile(file, modifiedDate){
if (modifiedDate > lastSync){
//this must be a new file created from another client.
download the file from the server
}
else{
//the file has been deleted on the client since the last sync, delete it.
delete the file.
}
}
I suppose I would first be interested to he...