# Lstat: CreateFile \\\\?\UNC\ backup: Access is denied.

`Lstat: CreateFile \\?\UNC\ backup: Access is denied.`

When performing a backup of a network location such as a mapped network drive or UNC path you may receive an error message similar to this in your backup logs.

The error message, "`Lstat: CreateFile \?\UNC\Server\Path: Access is denied`," indicates that there was an error while trying to retrieve information about a file or directory located on a UNC (Universal Naming Convention) network path.

This error message could be due to several reasons, such as:

1. Incorrect login credentials: The network login credentials you supplied in the Protected Item to access the network drive may be incorrect, or the account you used may not have sufficient permissions to access the drive.
2. You have not added network credentials in the Protected Item, and the backup service is unable to access the UNC path without your login credentials.

Please see[ our guide](/guides/how-to-backup-windows-network-shares-and-unc-paths.md) to backing up network shares. There are some important steps you don't want to miss.

{% content-ref url="/pages/CUu86ODkLS7am2p8wn7r" %}
[How to Backup Windows Network Shares and UNC Paths](/guides/how-to-backup-windows-network-shares-and-unc-paths.md)
{% endcontent-ref %}

Some additional information on the error -> We frequently get asked about the meaning of Lstat and CreateFile:

**Lstat** and **CreateFile** are functions used in the context of accessing files and directories in Windows and Linux operating systems.

In Windows, the CreateFile function is used to create or open a file or device for reading, writing, or other types of operations.

Lstat is a function used in the Linux operating system to retrieve information about a file or directory, such as its type, size, and permissions.

***

[eazyBackup](https://eazybackup.com)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eazybackup.com/troubleshooting/lstat-createfile-unc-backup-access-is-denied..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
