def collection_backup_all(location, backup_name=None, **kwargs):
 for collection_name in collection_list(**kwargs):
  if (backup_name is not None):
   backup_name = '&name={backup}.{collection}'.format(backup=backup_name, collection=collection_name)
  else:
   backup_name = ''
  _query('{collection}/replication?command=BACKUP&location={location}{backup_name}&wt=json'.format(collection=collection_name, backup_name=backup_name, location=location), **kwargs)

def collection_backup_all ( location , backup_name = None , ** kwargs ) : for collection_name in collection_list ( ** kwargs ) : if ( backup_name is not None ) : backup_name = '&name={backup}.{collection}' . format ( backup = backup_name , collection = collection_name ) else : backup_name = '' _query ( '{collection}/replication?command=BACKUP&location={location}{backup_name}&wt=json' . format ( collection = collection_name , backup_name = backup_name , location = location ) , ** kwargs )
create a backup for all collection present on the server .