# Influxdb 1.1: Issue with backup/restore: wrong data visible after restore

**URL:** <https://community.influxdata.com/t/influxdb-1-1-issue-with-backup-restore-wrong-data-visible-after-restore/311>\
**Category:** Systems\
**Tags:** influxdb, backup\
**Created:** [March 22, 2017, 11:55am UTC](https://community.influxdata.com/t/influxdb-1-1-issue-with-backup-restore-wrong-data-visible-after-restore/311 "2017-03-22T11:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattibf](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/mattibf/32/1531_2.png) [@mattibf](https://community.influxdata.com/u/mattibf)\
**Post date:** [March 22, 2017, 11:55am UTC](https://community.influxdata.com/t/influxdb-1-1-issue-with-backup-restore-wrong-data-visible-after-restore/311/1 "2017-03-22T11:55:12Z")

</div>

Hello,

I’m currently testing backup and restore with influxdb 1.1, and having issues with it.

Short description:

- Backup db -\> bck1
- delete data in db
- insert data in db
- stop influx
- Restore from backup
- start influx
- Expected: Changes done after backup (delete, insert) are not visible
- Observed: All the changes are still visible!
- Work-around: if I drop the database before restore, I see everything as expected.

Has anybody an idea why that happens?  
I don’t get any error message, and - as described above - everything works fine if I drop the database first.  
For details on the commands I’m using, pls. see below

Details:  
The commands, I’m using

- backup: influxd backup -database 
- delete data: done with influx, drop series
- stop database
- restore:  
influxd restore -metadir /var/lib/influxdb/meta   
influxd restore -database -datadir /var/lib/influxdb/data   
sudo chown -R influxdb:influxdb /var/lib/influxdb

Further investigation:  
I checked what’s going on on file system level.  
There, new tsm-files have been created from the backup.  
The names are different than the existing ones, so the “old” and the “new” tsm files both exist.  
If I manually delete the “old” files I see the expected results.

---

<div class="post-metadata">

**Author:** ![jackzampolin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jackzampolin/32/5_2.png) [@jackzampolin](https://community.influxdata.com/u/jackzampolin)\
**Post date:** [March 23, 2017, 1:12am UTC](https://community.influxdata.com/t/influxdb-1-1-issue-with-backup-restore-wrong-data-visible-after-restore/311/2 "2017-03-23T01:12:16Z")

</div>

@mattibf This sounds like an issue. Can you [open an issue](https://github.com/influxdata/influxdb/issues/new) on Influx please?

---

<div class="post-metadata">

**Author:** ![mattibf](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/mattibf/32/1531_2.png) [@mattibf](https://community.influxdata.com/u/mattibf)\
**Post date:** [July 18, 2018, 11:22am UTC](https://community.influxdata.com/t/influxdb-1-1-issue-with-backup-restore-wrong-data-visible-after-restore/311/3 "2018-07-18T11:22:37Z")

</div>

Sorry, just saw your answer right now. Since there’s the new backup/restore mechanism, I won’t create an issue for the old one
