# Revision history is lost on backup and restore

**URL:** https://community.stardog.com/t/revision-history-is-lost-on-backup-and-restore/137
**Category:** Bug
**Created:** [February 24, 2017, 3:02pm UTC](https://community.stardog.com/t/revision-history-is-lost-on-backup-and-restore/137 "2017-02-24T15:02:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rnavarropiris](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/rnavarropiris/32/44_2.png) [@rnavarropiris](https://community.stardog.com/u/rnavarropiris)
#### Post date: [February 24, 2017, 3:02pm UTC](https://community.stardog.com/t/revision-history-is-lost-on-backup-and-restore/137/1 "2017-02-24T15:02:15Z")

</div>

# Problem description

The revision history is not backed up and restored with the [backup](https://docs.stardog.com/man/db-backup.html) and [restore](https://docs.stardog.com/man/db-restore.html) commands.  
The problem was reproduced with the latest Stardog version (4.2.3).

# Problem reproduction

This command line output shows how the problem was reproduced:

```bash
> cd /opt/stardog/bin

> ./stardog query stardog /data/insert.ru
Update query processed successfully in 00:00:00.151.

> ./stardog vcs list stardog
Version: 9c53c9c9-202b-46f4-88fe-0309973a8fd9
Committer: admin
Date: 2017-02-24 10:55:29

Version: 1dc01b46-40ed-4d78-ba7c-54a1fec1bf40
Committer: admin
Date: 2017-02-24 10:52:04

    Database creation

> ./stardog-admin db backup stardog
Backup of stardog saved to /data/.backup/stardog/2017-02-24 in 00:00:00.022

> ./stardog-admin db restore -o /data/.backup/stardog/2017-02-24
Restoring database stardog
Successfully restored database 'stardog' from Backup(/data/.backup/stardog/2017-02-24) in 00:00:00.559.

> ./stardog vcs list stardog
Version: 2d3d89b7-543e-44a3-87ae-65b6cee12f1b
Committer: admin
Date: 2017-02-24 10:52:04

    Database creation

> ./stardog query stardog /data/select.rq
+-------+-------+-------+
| s | p | o |
+-------+-------+-------+
| urn:s | urn:p | urn:o |
+-------+-------+-------+

Query returned 1 results in 00:00:00.082

```

## Required files

Contents of `/data/insert.ru`

```sparql
INSERT DATA {GRAPH <urn:g> {<urn:s> <urn:p> <urn:o>}}

```

Contents of `/data/select.rq`

```sparql
SELECT * FROM <urn:g> {?s ?p ?o}

```

---

<div class="post-metadata">

### Author: ![stephen](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/stephen/32/27_2.png) [@stephen](https://community.stardog.com/u/stephen)
#### Post date: [February 24, 2017, 3:35pm UTC](https://community.stardog.com/t/revision-history-is-lost-on-backup-and-restore/137/2 "2017-02-24T15:35:24Z")

</div>

Hi Ruben,

I am able to reproduce this issue and I’ll be opening an internal ticket to address it. Thanks much for the report, and I’ll update this thread with any new information.
