def tar_backup_files(file_paths, target):
 backup_file_location = target
 if (not rename(backup_file_location, '{0}{1}'.format(backup_file_location, BACKUP_ROLLBACK_SUFFIX))):
  logging.warning("'{0}' not found. Skipping file rename...".format(backup_file_location))
 tar = tarfile.open(backup_file_location, 'w')
 for name in file_paths:
  tar.add(name)
 tar.close()
 return backup_file_location

def tar_backup_files ( file_paths , target ) : backup_file_location = target if ( not rename ( backup_file_location , '{0}{1}' . format ( backup_file_location , BACKUP_ROLLBACK_SUFFIX ) ) ) : logging . warning ( "'{0}' not found. Skipping file rename..." . format ( backup_file_location ) ) tar = tarfile . open ( backup_file_location , 'w' ) for name in file_paths : tar . add ( name ) tar . close ( ) return backup_file_location
tars all snapshot files for a given snapshot name .