# Files change during snapshot and restore process

**URL:** <https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694>\
**Category:** Elasticsearch\
**Created:** [June 8, 2017, 9:46am UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694 "2017-06-08T09:46:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham9799](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@shubham9799](https://discuss.elastic.co/u/shubham9799)\
**Post date:** [June 8, 2017, 9:46am UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694/1 "2017-06-08T09:46:02Z")

</div>

I took second snapshot after adding some files and try to find the difference. I found that some files also got removed and some got modified. But if I am adding documents, why some files get removed from the backup? I am asking this because I want to copy the new files to a different location. If some files are getting modified or deleted, then I have no option left and copy the whole repository folder which will be very time consuming.

---

<div class="post-metadata">

**Author:** ![EthanStark](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@EthanStark](https://discuss.elastic.co/u/EthanStark)\
**Post date:** [June 8, 2017, 10:27am UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694/3 "2017-06-08T10:27:01Z")

</div>

Use the mmlssnapshot device command to list the snapshots in the file system and make a note of the snapshot that contains the files and directories that you want to restore.  
device is the name of the file system.

Snapshots in file system fs1:  
Directory SnapId Status Created Fileset  
fileset\_test1 1 Valid Mon Mar 23 09:20:37 2015 nfs-ganesha  
filesystem\_test2 2 Valid Mon Mar 23 11:12:59 2015

---

<div class="post-metadata">

**Author:** ![shubham9799](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@shubham9799](https://discuss.elastic.co/u/shubham9799)\
**Post date:** [June 8, 2017, 10:53am UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694/4 "2017-06-08T10:53:26Z")

</div>

Hi Ethan, could you tell what is mmlssnapshot device command?

---

<div class="post-metadata">

**Author:** ![EthanStark](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@EthanStark](https://discuss.elastic.co/u/EthanStark)\
**Post date:** [June 8, 2017, 12:42pm UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694/5 "2017-06-08T12:42:25Z")

</div>

mmrestorefs Device SnapshotName [-j FilesetName]  
[-N {Node[,Node...] | NodeFile | NodeClass}]  
[--log-quiet] [--preserve-encryption-attributes]  
[--suppress-external-attributes] [--threads MaxNumThreads]  
[--work-unit FilesPerThread]

Description:

Use the mmrestorefs command to restore user data and attribute files to a file system or an independent fileset using those of the specified snapshot. Data will be restored by mmrestorefs without regard for file system or fileset quotas unless the enforceFilesetQuotaOnRoot configuration attribute of the mmchconfig command is set to yes. The mmrestorefs command does not restore the file system and fileset quota configuration information.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:42pm UTC](https://discuss.elastic.co/t/files-change-during-snapshot-and-restore-process/88694/6 "2017-07-06T12:42:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
