def move_secondary_backup(base_path):
 source = '{0}{1}'.format(base_path, BACKUP_ROLLBACK_SUFFIX)
 target = base_path
 if (not rename(source, target)):
  logging.warning('No secondary backup to restore. Skipping...')

def move_secondary_backup ( base_path ) : source = '{0}{1}' . format ( base_path , BACKUP_ROLLBACK_SUFFIX ) target = base_path if ( not rename ( source , target ) ) : logging . warning ( 'No secondary backup to restore. Skipping...' )
moves the secondary backup back in place .