UltipaDocs
Try Playground
  • Introduction
  • Terminologies
    • Reserved Words
    • Data Types
    • Alias
    • Operators
    • Expression
    • Filter
    • Prefix
    • Node and Edge Templates
    • Homologous and Heterologous Data
    • Clause Execution Times
    • Graphset
    • Schema
    • Property
    • Insert
    • Overwrite
    • Upsert
    • Update
    • Delete
    • Find Nodes
    • Find Edges
      • AB
      • Autonet
      • Spread
      • Path Template
      • K-Hop
      • K-Hop Template
    • Find Subgraphs
    • GROUP BY
    • ORDER BY
    • SKIP
    • LIMIT
    • WHERE
    • RETURN
    • WITH
    • UNCOLLECT
    • UNION
    • UNION ALL
    • CALL
    • BATCH
      • Schema Checker
      • Equal
      • Not Equal
      • Less Than
      • Greater Than
      • Less Than or Equal
      • Greater Than or Equal
      • Between
      • Between or Equal
      • Beong to
      • Not Belong To
      • CONTAINS | String
      • CONTAINS | Full-Text
      • Regular Match
      • IS NULL
      • IS NOT NULL
      • And
      • Or
      • Not
      • Exclusive OR
      • DISTINCT
      • toString()
      • toInteger()
      • toFloat()
      • toDouble()
      • toDecimal()
      • toSet()
      • castToRaw()
      • now()
      • dateAdd()
      • dateDiff()
      • year()
      • month()
      • day()
      • dayOfWeek()
      • dateFormat()
      • point()
      • distance()
      • pointInPolygon()
      • lower()
      • upper()
      • reverse()
      • startsWith()
      • endsWith()
      • JSON_decode()
      • JSON_merge()
      • trim()
      • ltrim()
      • rtrim()
      • left()
      • right()
      • substring()
      • replace()
      • split()
      • intersection()
      • difference()
      • listUnion()
      • size()
      • head()
      • reduce()
      • listContains()
      • append()
      • pi()
      • pow()
      • sqrt()
      • abs()
      • floor()
      • ceil()
      • round()
      • sin()
      • cos()
      • tan()
      • cot()
      • asin()
      • acos()
      • atan()
      • length()
      • pnodes()
      • pedges()
      • count()
      • sum()
      • max()
      • min()
      • avg()
      • stddev()
      • collect()
      • dedup()
      • CASE
      • table()
      • coalesce()
      • ifnull()
    • Acceleration
    • Index
    • Full-text
    • LTE
    • Real-time Process
    • Backend Task
    • Analytics Node
    • Server Statistics
    • Server Backup
    • Privilege
    • Policy
    • User
  • Trigger
  1. Docs
  2. /
  3. UQL
  4. /
  5. Process | Task | Server

Server Backup

Server backups are stored as increment of same backup name under a particular backup path (could be modified via SDK). Valid backup status are:

Code
DescriptionCorresponding progress message
unknownUn-initialied, initialized or unknow error
creatingCreatingThe graphset being backed up
failedFailedErrors that lead to failure
doneDone'ok'
NOTE

Operations related to server backup will be sent to the leader of the server cluster.

Naming Conventions

Server backups are named by developers. A same name cannot be shared between backups under the same backup path.

  • 2 ~ 64 characters
  • Must start with letters
  • Allow to use letters, underscore and numbers ( _ , A-Z, a-z, 0-9)

Show Server Backup

Returned table name: the backup name, one table for each backup
Returned table header: backup_id | backup_uuid | backup_path | start_time | end_time | status | msg (the id, uuid, path, start time, end time, status and prgress message of the backup increment)

Syntax:

Syntax
// To show all backups in the current Ultipa instance
db.backup.show() 
            
// To show a certain backup in the current Ultipa instance
db.backup.show("<backup_name>") 

Create Server Backup

When creating a backup whose name already exists in the current backup path, a backup increment will be created, with unique backup_id and backup_uuid.

Syntax:

Syntax
// To create a backup in the current Ultipa instance
db.backup.create("<backup_name>") 

Restore Server Backup

Backup name is required when restoring the Ultipa instance, while the backup_id of increment is optional.

Syntax:

Syntax
// To restore current Ultipa instance to the latest increment of a certain backup
db.backup.restore("<backup_name>") 

// To restore current Ultipa instance to a certain increment of a certain backup
db.backup.restore("<backup_name>", backup_id)