Re: [SLUG] FTP directory synchronisation
Raphael Kraus wrote: Are there any suggestions on how this can be / should be done? See wget and it's associated 'mirror' script. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
G'day Glen and all, Glen Turner wrote: See wget and it's associated 'mirror' script. Thanks heaps! Can you provide a reference for the mirror script? All the best Raphael -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
Hi Raphael, On Mon, 2006-02-13 at 10:44 +1100, Raphael Kraus wrote: G'day all, I'm wanting to perform FTP synchronisation (similar to rsync) - i.e. a local and remote directory are made up to date at a set schedule. Where two files of the same name exist on both remote and local hosts, the older one is overwritten with the newer. Subdirectories are searched recursively. Are there any suggestions on how this can be / should be done? Sitecopy (or xsitecopy if you want a nice GUI) is what you want. While it doesn't directly have a scheduling option, you can run it as a cron job. http://www.lyra.org/sitecopy/ ADB -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
Raphael Kraus wrote: Thanks heaps! Can you provide a reference for the mirror script? mirror.pl http://www.sunsite.org.uk/packages/mirror/ wget http://www.gnu.org/software/wget/wget.html There are also plenty of other alternatives and re-writes. cURL, ftpcopy, etc, etc. This is a well-trodden path. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
On Mon, Feb 13, 2006 at 10:44:14AM +1100, Raphael Kraus wrote: I'm wanting to perform FTP synchronisation (similar to rsync) - i.e. a local and remote directory are made up to date at a set schedule. I use weex for just this; a poor man's rsync http://weex.sourceforge.net/ -i signature.asc Description: Digital signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
On Mon, Feb 13, 2006 at 11:32:31AM +1100, Andrew Burton wrote: Sitecopy (or xsitecopy if you want a nice GUI) is what you want. While it doesn't directly have a scheduling option, you can run it as a cron job. http://www.lyra.org/sitecopy/ I've found sitecopy a little obscure to setup, and a little buggy.[1] It useful for webdav stuff, otherwise I suggest just sticking to... My favourites which are wget with the -m (mirror) option and lftp with it's mirror subcommand. Small warning with wget -m on 'http' urls: you probably want -np (no parent) as well otherwise mirror might find a link pointing at a parent directory/file resulting in the script getting way too much. Matt 1. one bug I got was it attempting to create parent dirs before subdirs and failing. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] FTP directory synchronisation
Thanks to everyone who gave assistance with this one. Greatly appreciated! Raphael -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html