[Gllug] Re: ftp syncing
Craig Millar
gllug at craigmillar.org
Tue Jan 17 16:25:13 UTC 2006
On 17/01/06 16:06 +0000, t.clarke wrote:
> I have have misunderstood the problem, but if you use a bog-standard ftp
> client to firstly list all the files within the ftp server to a file on your
> local machine, you should then be able to build a local file containing
> a simple list of the image-files on the server. Then perhaps you could
> do a periodic comparison of the list with yr catalogue and from the
> comparison feed a list of files to be uploaded to 'wput'. The list would
> naturally need to be updated localy at the same time. Just a thought, for what
> its worth !
Thanks Tim - I think I'll have to go that route as it does seem to make the most
sense.. I'm thinking of a python script that uses sets for easy comparison of
the remote and local files. The reason I was looking for a ready rolled
solution was because I'd ideally like it to sync on timestamps as well as
names, so if a file is updated locally it's synced over.
> Presumably yu also need to remove no-longer-needed image files from the
> server as well?
Yep - I didn't mention that.
> Tim
Thanks again
Craig
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list