public class BackupServlet extends BigdataRDFServlet
curl --data-urlencode "file=/path/to/backup.jnl" http://localhost:9999/blazegraph/backup
Will place the backup file in /path/to/backup.jnl. If not backupFile is specified, it will be written to backup.jnl
in the directory where the java process is currently executing.
The REST API supports the following parameters:
file : The name of the file. Defaults to backup.jnl in the current working directory.
compress : Boolean to compress the backup. It defaults to false. It is true if the parameter is present without a value. Compress does not append a .gz to the backup file name.
block : Boolean to block the REST call on creating the snapshot. Defaults to true.
curl \
--data-urlencode "file=/path/to/backup.jnl" \
--data-urlencode "compress=true" \
--data-urlencode "block=true" \
http://localhost:9999/blazegraph/backup
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCK
URL parameter to specify that the REST call should block until
the backup is completed.
|
static String |
COMPRESS
URL parameter to compress the snapshot.
|
static String |
DEFAULT_FILE |
static String |
FILE
URL parameter to specify the backup file.
|
ATTR_BLUEPRINTS, MIME_JSON, MIME_RDF_XML, MIME_SPARQL_QUERY, MIME_SPARQL_RESULTS_JSON, MIME_SPARQL_RESULTS_XML, MIME_SPARQL_UPDATE, NA, OUTPUT_FORMAT_JSON, OUTPUT_FORMAT_JSON_SHORT, OUTPUT_FORMAT_QUERY_PARAMETER, OUTPUT_FORMAT_XML, OUTPUT_FORMAT_XML_SHORT, UNDEFINED_WORKBENCH_NAMESPACE, UTF8ATTRIBUTE_RDF_CONTEXT, charset, DELETE, GET, HTTP_BADREQUEST, HTTP_HEADER_BIGDATA_READ_ONLY, HTTP_INTERNALERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOTFOUND, HTTP_NOTIMPLEMENTED, HTTP_OK, POST, PUTMIME_APPLICATION_JSON, MIME_APPLICATION_URL_ENCODED, MIME_APPLICATION_XML, MIME_DEFAULT_BINARY, MIME_GRAPH_ML, MIME_PROPERTIES_XML, MIME_TEXT_HTML, MIME_TEXT_JAVASCRIPT, MIME_TEXT_PLAIN| Constructor and Description |
|---|
BackupServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected void |
processRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
buildAndCommitBooleanResponse, buildAndCommitNamespaceNotFoundResponse, buildAndCommitRangeCountResponse, getNamespace, getTimestamp, isAttachment, launderThrowable, newPipedInputStream, parseBindings, sendGraph, sendProperties, toURIsbuildAndCommitResponse, decodeContexts, getBigdataRDFContext, getBooleanValue, getIndexManager, getIndexManager, getServiceURIs, readFully, submitApiTaskdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String COMPRESS
public static final String FILE
public static final String DEFAULT_FILE
public static final String BLOCK
SnapshoTask is completed.protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
doPost in class javax.servlet.http.HttpServletIOExceptionprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionprotected void processRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException
IOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.