[Tutor] how can I compare a local directory or file with a remote one
Tom Tucker
tktucker at gmail.com
Wed Jun 20 21:41:49 CEST 2007
What are we comparing? Size of files, number of files in a directory, md5sum
of the files, directory size, etc? What about rsync? You can use rsync to
compare directories between a source and destiantion system and just report
differences. For example, comparing /etc directores between two RHEL
4.5systems.
On 6/20/07, Richard Querin <rfquerin at gmail.com> wrote:
>
> I'm interested in writing a quick script that would run a diff-type
> command that would compare a local directory to a remote one to
> identify the changes in the files within that directory.
>
> I was initially thinking that I would maybe use the linux diff command
> in conjunction with the wget command (or something similar) to create
> a local copy but that involves downloading files. Is there any way in
> python to do a similar thing but without having to download a copy of
> the remote files/directories?
>
> Any ideas?
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070620/df1defee/attachment.htm
More information about the Tutor
mailing list