Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1727

Allow snapshot policies with standalone installs (Online Backup REST API)

    Details

      Description

      Could we have the ability to create snapshot policies similar to https://wiki.blazegraph.com/wiki/index.php/HAJournalServer in standalone installations?

      It would be ideal to be able to backup standalone installations without having to stop the webapp. Basically have it do some sort of automatic snapshot / write log files which allow the ability to roll back to a specific point.

        Activity

        Hide
        beebs Brad Bebee added a comment - - edited

        Request an online backup of the journal (non-HA Mode). The backup will be written to the backup file specified as the value of the Request Parameter, i.e.

         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  
        
        Show
        beebs Brad Bebee added a comment - - edited Request an online backup of the journal (non-HA Mode). The backup will be written to the backup file specified as the value of the Request Parameter, i.e. 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
        Show
        beebs Brad Bebee added a comment - https://github.com/SYSTAP/bigdata/pull/335
        Hide
        beebs Brad Bebee added a comment -

        Merged to master and documentation updated.

        Show
        beebs Brad Bebee added a comment - Merged to master and documentation updated.

          People

          • Assignee:
            beebs Brad Bebee
            Reporter:
            ltaylor Luke Taylor
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: