re-inventing the wheel ?<br><br><a href="http://www.howtoforge.com/linux_backuppc" target="_blank">http://www.howtoforge.com/linux_backuppc</a> <br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 3:44 PM, Alan Gauld <<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">"Nathan McBride" <<a href="mailto:nomb85@comcast.net" target="_blank">nomb85@comcast.net</a>> wrote<br>
<br>
Hi Nathan,<br>
<br>
Please don't reply to an existing message to start a new discussion.<br>
It messes up those of us using threaded mail/news readers and<br>
increases the likelihood that your message will be missed.<br>
<div><br>
> I'm pretty tired of the lame backup solution we have at work.<br>
> Could anyone point me to a (more or less newbieish) example of how<br>
> to<br>
> have python open a socket on one box and get data from it, then have<br>
> another<br>
> box write to it over the network?<br>
<br>
</div>For a very simple example of using a socket you could try the<br>
Network Programming topic in my tutorial.<br>
<br>
There is also a HowTo or Topic guide on the Python web site<br>
that gives a more detailed example.<br>
<br>
That having been said, backups are usually best done using<br>
OS tools or if you must roll your own then using ftp or similar<br>
as a file transfer mechanism rather than trying to send a<br>
bytestream over a socket. ftp can handle broken connections<br>
etc more easily. Detecting and fixing errors over a socket<br>
stream is non trivial and for backups is pretty much essential!!<br>
<font color="#888888"><br>
--<br>
Alan Gauld<br>
Author of the Learn to Program web site<br>
<a href="http://www.freenetpages.co.uk/hp/alan.gauld" target="_blank">http://www.freenetpages.co.uk/hp/alan.gauld</a><br>
</font><div><div></div><div><br>
<br>
_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>