Copiar archivos, samba, linux filesystem

Walter Ferreira emonk en debianuruguay.org
Vie Nov 16 16:12:52 CET 2007


Hola lisra, me presento, soy emonk.

Recien empiezo con python, y el primer programa que quiero hacer, es uno que
haga backups; va a correr en un server linux; es sencillo solo tiene que
montar un recurso compartido de otra maquina (a travez de samba) y copiar el
contenido a una carpeta local; y despues eventualmente comprimirlo en tar.gz
.

Lo que desconozco es por que modulos debo empezar a investigar, porque
estuve viendo la doc del modulo os, y dice que es para DOS y MAC :S.

>>> os.__doc__
"OS routines for Mac, DOS, NT, or Posix depending on what system we're
on.\n\nThis exports:\n  - all functions from posix, nt, os2, mac, or ce, e.g.
unlink, stat, etc.\n  - os.path is one of the modules posixpath, ntpath, or
macpath\n  - os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos'\n  -
os.curdir is a string representing the current directory ('.' or ':')\n  -
os.pardir is a string representing the parent directory ('..' or '::')\n  -
os.sep is the (or a most common) pathname separator ('/' or ':' or
'\\\\')\n  - os.extsep is the extension separator ('.' or '/')\n  -
os.altsep is the alternate pathname separator (None or '/')\n  -
os.pathsepis the component separator used in $PATH etc\n  -
os.linesep is the line separator in text files ('\\r' or '\\n' or
'\\r\\n')\n  - os.defpath is the default search path for executables\n  -
os.devnull is the file path of the null device ('/dev/null',
etc.)\n\nPrograms that import and use 'os' stand a better chance of
being\nportable between different platforms.  Of course, they must
then\nonly use functions that are defined by all platforms (e.g.,
unlink\nand opendir), and leave all pathname manipulation to os.path\n(e.g.,
split and join).\n"
>>>

Cualquier dato, por mas pequeño, me iluminara y se los agredecere mucho .
Saludos :)
-- 
---
http://emonk.debianuruguay.org/
Key fingerprint = 0CCB D0F6 47F2 5F70 6F40  53D3 7537 A0E4 94FC 40EE
----------------------------------
------------ próxima parte ------------
_______________________________________________
Lista de correo Python-es 
http://listas.aditel.org/listinfo/python-es
FAQ: http://listas.aditel.org/faqpyes


Más información sobre la lista de distribución Python-es