109
109
# US-386: Check if file/path exists and raise exception, no need to prepare the backup, thus no pg_dump is executed
110
110
outfile = os.path.join(bck.name, "%s-%s%s-%s.dump" % (cr.dbname, datetime.now().strftime("%Y%m%d-%H%M%S"), suffix, get_server_version()))
111
111
bkpfile = open(outfile,"wb")
113
114
# If there is exception with the opening of the file
114
115
if isinstance(e, IOError):