Changeset 40896
- Timestamp:
- Sep 24, 2019, 11:15:36 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ipp-132_automate_jira_conf_backups/backups/backup_atlassian_applications.py
r40894 r40896 111 111 self._make_destination_subdirs_if_needed(cp) 112 112 113 print("Paths ok")114 113 return True 115 114 … … 121 120 for sd in subdirs: 122 121 if not path.exists(sd): 123 print("creating dir: ", sd) 122 if self.verbose: 123 print("creating dir: ", sd) 124 124 os.makedirs(sd) 125 125 … … 257 257 # do this as the dumper user 258 258 259 print(dump_password)260 261 259 latest_paths = self.target_paths("latest") 262 260 if not self.target_backup_paths_ok(): … … 277 275 , '--databases', 'jiradb', 'confluencedb' 278 276 ] 279 print(mysqldump_args)280 277 with open(dump_filepath, "w+") as df: 281 278 mysqldump_process = subprocess.Popen(mysqldump_args, stdout=df, stderr=subprocess.PIPE) … … 286 283 if stde is not None: 287 284 decoded_stderr = stde.decode() 288 print(decoded_stderr)289 print(decoded_stderr.casefold().find('error'.casefold()))290 285 if decoded_stderr.casefold().find('error'.casefold()) > -1: 291 286 raise sub_utils.SubprocessError()
Note:
See TracChangeset
for help on using the changeset viewer.
