Hi rsync@, Is it possible to use rsync to check if there are changes in the files I'm trying to sync, but just to check? I need to check if the files I have in a local directory differs from the files in an anonymous rsync server. I'm willing to use -anv (-n for --dry-run) and parse the output. But maybe there is an easier way? Maybe some status returned given a specific set of parameters? Thank you.
On Thu 01 Mar 2012, Daniel Bolgheroni wrote:> > I'm willing to use -anv (-n for --dry-run) and parse the output. But > maybe there is an easier way? Maybe some status returned given a > specific set of parameters?I'd use -i (itemize changes) instead of -v as that's probably easier to parse in addition to giving more detailed information. Paul
On Thu, Mar 1, 2012 at 4:26 AM, Daniel Bolgheroni <daniel at cria.org.br>wrote:> Is it possible to use rsync to check if there are changes in the files > I'm trying to sync, but just to check? >Someone already suggested --itemize-changes, so I'll just mention that if you want to check file content (to avoid a false-positive match if the file's size and mtime could possibly match w/o the content being identical), then you also need --checksum (-c). ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20120301/c3d68ed5/attachment.html>