Skip to content

Commit

Permalink
Zip up all the logs in the given directory
Browse files Browse the repository at this point in the history
  • Loading branch information
geekcomputers committed Jun 13, 2012
1 parent b2d1e65 commit b4b5430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puttylogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
files1=files+"."+strftime("%Y-%m-%d")+".zip" # Create the Variable files1, this is the files in the directory, then we add a suffix with the date and the zip extension
os.chdir(logsdir) # Change directory to the logsdir
os.system(zip_program + " " + files1 +" "+ files) # Zip the logs into dated zip files for each server. - 1.1
shutil.move(files1, zipdir) # Move the zipped log files to the zipped_logs directort - 1.2
shutil.move(files1, zipdir) # Move the zipped log files to the zipped_logs directory - 1.2
os.remove(files) # Remove the original log files

0 comments on commit b4b5430

Please sign in to comment.