> For the complete documentation index, see [llms.txt](https://docs.duplicati.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplicati.com/backup-destinations/standard-based-destinations/cifs-aka-smb-destination.md).

# SMB (aka CIFS) Destination

This page describes the CIFS storage destination

{% hint style="info" %}
The destination can be selected with both `smb://` and `cifs://`. The `cifs://` name is deprecated and only kept for existing configurations; use `smb://` for new backups.
{% endhint %}

The Server Message Block (SMB) / Common Internet File System (CIFS) backend provides native support for accessing shared network resources using the SMB/CIFS protocol. This backend enables direct interaction with Windows shares and other SMB-compatible network storage systems.

## User interface

<figure><picture><source srcset="/files/CGviuBYoJ1MksY1YCmHr" media="(prefers-color-scheme: dark)"><img src="https://2363712449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cMJiGuXy340g9NzpxLY%2Fuploads%2Fgit-blob-955668aea38dbdf490e626f71add89cb64d0e1f1%2FScreenshot%202025-11-03%20at%2015.09.37.png?alt=media" alt="View of the SMB configuration page"></picture><figcaption></figcaption></figure>

To use the SMB connection you must supply the server, shared name, path on server, username, password, and transport. See below for a description of the transport method.

## URL format for Commandline

To use the CIFS destination, you can use a url such as:

```
smb://<hostname>/<share>/<path>
  ?auth-username=<username>
  &auth-password=<password>
  &transport=directtcp
```

If the account belongs to a Windows domain, enter the domain in the user interface, or add `&auth-domain=<domain>` to the URL.

## Transport

SMB supports two distinct transport protocols, each with its own characteristics:

#### DirectTCP (directtcp)

* **Port**: 445
* **Characteristics**:
  * Faster performance
  * Modern implementation
  * Preferred for newer systems
  * Direct TCP/IP connection
  * Lower overhead

#### NetBIOS over TCP (netbios)

* **Port**: 139
* **Characteristics**:
  * Legacy support
  * Compatible with older systems
  * Additional protocol overhead
  * Slower performance
  * Uses NetBIOS naming service

## Advanced Options

\--[**read-buffer-size**](#user-content-fn-1)[^1]

Defines the read buffer size, in bytes, for SMB operations (Will be capped automatically by SMB negotiated values, values below 10000 bytes will be ignored)

\--[**write-buffer-size**](#user-content-fn-1)[^1]

Defines the write buffer size, in bytes, for SMB operations (Will be capped automatically by SMB negotiated values, values below 10000 bytes will be ignored)

The SMB backend is available on stable release from version 2.2.

[^1]: Manual buffer size adjustment is typically unnecessary and not recommended as it may interfere with the protocol's built-in optimization. The default negotiation process ensures optimal performance for most use cases.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.duplicati.com/backup-destinations/standard-based-destinations/cifs-aka-smb-destination.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
