# Unable to backup data in mounted location in linux

**URL:** <https://discuss.elastic.co/t/unable-to-backup-data-in-mounted-location-in-linux/173483>\
**Category:** Elasticsearch\
**Created:** [March 22, 2019, 11:28am UTC](https://discuss.elastic.co/t/unable-to-backup-data-in-mounted-location-in-linux/173483 "2019-03-22T11:28:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_8787](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_8787/32/42587_2.png) [@john\_8787](https://discuss.elastic.co/u/john_8787)\
**Post date:** [March 22, 2019, 11:28am UTC](https://discuss.elastic.co/t/unable-to-backup-data-in-mounted-location-in-linux/173483/1 "2019-03-22T11:28:51Z")

</div>

on running the elasticsearch snapshot query. The data is not getting saved in the file location.

This is a mounted folder and this was mounted using command:

```auto
sudo mount -t cifs -o username=qedbuser,password= **** ,domain=EUR, noprem //10.60.33.3/ffff/ProductionEnvironment /home/local/EUR/qedbuser/nb/aa/archives/

```

note: i am able to create a folder inside archives folder but not able to do a backup. I am trying to take backup using the same user as the user.

I am getting the following error.

Caused by: java.nio.file.AccessDeniedException: /home/local/EUR/qedbuser/apigateway/InternalDataStore/archives/default  
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:?]  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]  
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) ~[?:?]  
at java.nio.file.Files.createDirectory(Files.java:674) ~[?:1.8.0\_192]  
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781) ~[?:1.8.0\_192]  
at java.nio.file.Files.createDirectories(Files.java:767) ~[?:1.8.0\_192]  
at org.elasticsearch.common.blobstore.fs.FsBlobStore.(FsBlobStore.java:48) ~[elasticsearch-5.6.4.jar:5.6.4]  
at org.elasticsearch.repositories.fs.FsRepository.(FsRepository.java:95) ~[elasticsearch-5.6.4.jar:5.6.4]  
at org.elasticsearch.repositories.RepositoriesModule.lambda$new$0(RepositoriesModule.java:49) ~[elasticsearch-5.6.4.jar:5.6.4]  
at org.elasticsearch.repositories.RepositoriesService.createRepository(RepositoriesService.java:383) ~[elasticsearch-5.6.4.jar:5.6.4]

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [March 22, 2019, 12:23pm UTC](https://discuss.elastic.co/t/unable-to-backup-data-in-mounted-location-in-linux/173483/2 "2019-03-22T12:23:18Z")

</div>

It looks like the user that is running elasticsearch has no access to /home/local/EUR/qedbuser/apigateway/InternalDataStore/archives/default

Either mount it as the user elasticsearch runs as or add the elasticsearch to the group that is allowed to write to that directory.

Or run elasticsearch as user:

```auto
qedbuser

```

---

<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:** [April 19, 2019, 12:23pm UTC](https://discuss.elastic.co/t/unable-to-backup-data-in-mounted-location-in-linux/173483/3 "2019-04-19T12:23:20Z")

</div>

Closed on April 19, 2019, 12:23pm UTC

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