@@ -46,21 +46,21 @@ def slimer_script():
46
46
47
47
logging .info ("All paths have been scanned. All backup files are saved" )
48
48
49
- logging .info ('get all files in order to zip theses files' )
50
- file_paths_to_zip = get_all_file_paths (SLIMER_SCRIPT_ROOT_LOGS_PATH + "/" + timestamped_directory )
51
-
52
- zip_file = zip_files (file_paths_to_zip , SLIMER_SCRIPT_ROOT_LOGS_PATH + "/" + timestamped_directory ,
53
- computer_name + "_backup" )
54
-
55
- # opens the zip file for reading only in binary format in order to upload
56
- opened_zip_file = open (zip_file .filename , "rb" )
57
-
58
- upload_file_to_server_ftp (opened_zip_file , zip_file .filename )
59
-
60
- opened_zip_file .close ()
61
-
62
- logging .info ('deleting local zip file...' )
63
- os .remove (zip_file .filename )
64
-
65
- logging .info ('delete local zip file done' )
49
+ # logging.info('get all files in order to zip theses files')
50
+ # file_paths_to_zip = get_all_file_paths(SLIMER_SCRIPT_ROOT_LOGS_PATH + "/" + timestamped_directory)
51
+ #
52
+ # zip_file = zip_files(file_paths_to_zip, SLIMER_SCRIPT_ROOT_LOGS_PATH + "/" + timestamped_directory,
53
+ # computer_name + "_backup")
54
+ #
55
+ # # opens the zip file for reading only in binary format in order to upload
56
+ # opened_zip_file = open(zip_file.filename, "rb")
57
+ #
58
+ # upload_file_to_server_ftp(opened_zip_file, zip_file.filename)
59
+ #
60
+ # opened_zip_file.close()
61
+ #
62
+ # logging.info('deleting local zip file...')
63
+ # os.remove(zip_file.filename)
64
+ #
65
+ # logging.info('delete local zip file done')
66
66
0 commit comments