[Tutor] Zipping files and Mysql

2011-06-27 Thread gagnrath
I am trying to write a script that will dump a mysql db and then zip the file. I do know about mysqldb, but I was wondering if there is anything native to the libraries that will allow me to do this without using a seperate piece. Then after I gather the DBs, I need to zip them. I wrote the

Re: [Tutor] Zipping files and Mysql

2011-06-28 Thread gagnrath
First time trying to use it, so I don't expect it to work. Got to see if I have a file i don't mind playing around with to see if I can zip it up using the zipfile. As for the MySQL, I think I may have to resign myself to using an alternate method than the straight python libraries. Jun 28,

[Tutor] Copying Files

2011-06-30 Thread gagnrath
I was using glob and shutil to copy logs from one location to another successfully, however, I have run into a snag when trying to copy a directory. Not sure how to fix this. Current Code is as follows: for file in glob.glob("/drbd1/monitorcenter/Apps/WEB-INF/*"): #This line is holding up