On Mon, Sep 3, 2012 at 6:31 PM, Tim Dudgeon <tdudgeon...@gmail.com> wrote: > Hi, I'm new to Camel, so please excuse my ignorance. > I'm wanting to set up mirroring of files on a FTP server, so that whenever > new files appear, or old files get changed, they get copied to the local > mirror, and maybe some processing performed on them. > > I've worked out the basics of how to use the FTP and File components, and am > now wondering how to actually set this up to do what I want. I got the > idempotentRepository working (using a FileIdempotentRepository) to make sure > that files are only processed once, but then realised that this isn't going > to allow updated files to be re-fetched. > > Is there an already baked approach to doing this, or do I need to cook my > own?
You can use a custom filter and return true for only the files which are either new or has changed since last. You would then need to keep track yourself if its a new file or updated since last. http://camel.apache.org/file2 These components was not intended for mirroring file systems (eg there are rsync and other tools for that). http://stackoverflow.com/questions/338621/ftp-transfer-the-rsync-way > > > Tim > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Advice-on-mirroring-using-FTP2-component-tp5718557.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen