# file truncated (expected xxxx bytes, got 0)

`"Error for USERNAME filename.ext': file truncated (expected xxxx bytes, got 0)"`

This issues usually occurs while backing up UNC paths from a NAS device such as a TureNAS, Synology, Qnap etc.

This error indicates that the backup application was expecting a file size of xxxx bytes for the file '`filename.ext`', but it only found a file size of 0 bytes. This error could occur if the file is missing or if there was an interruption during the backup process that caused the file to be truncated.

#### To resolve this error, you should check if the original file exists and try to backup the file again. You may also need to check the backup settings and ensure that there are no network interruptions on your LAN during the backup process.

***

[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/file-truncated-expected-xxxx-bytes-got-0.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.
