Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TeeJay (2309)

TeeJay
  (email not shown publicly)
http://www.aarontrevena.co.uk/

Working in Truro
Graduate with BSc (Hons) in Computer Systems and Networks
pm : london.pm, bath.pm, devoncornwall.pm
lug : Devon & Cornwall LUG
CPAN : TEEJAY [cpan.org]
irc : TeeJay
skype : hashbangperl
livejournal : hashbangperl [livejournal.com]
flickr :hashbangperl [flickr.com]

Journal of TeeJay (2309)

Tuesday October 01, 2002
11:30 AM

reinventing the filesynch wheel

[ #8115 ]
I'm afraid I've been forced to reinvent the old file synchronisation wheel.

We have a windows 2000 server thousands of miles away in the seychelles with a slow and dodgy connection to the internet

I need to synchronise a local mirror with it. So looking at rsync which requires hacks at their end (w2k and gnu don't play well together) and this (w2k and gnu don't play nice together even when you are at the console).

The easiest solution appears to be combination of perl, Net::FTP and a bunch of hashs. Build a tree of local and remote files, contrast and compare the two trees using a few recursive functions and ftp's get - hey presto 2 synchronised file systems.

great. my boss is still attempting to get rsync and windows synchronisation up and going but the quick perl hack is already working and tested.

The great thing about this is that I don't have to worry about getting anything working at the far end - all the work is done here and all they have to do is map an ftp directory to wherever the files are.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.