--- title: "Creating Repository in SMB Share" description: "To create a repository in an SMB share, use the following command: where: — name for the backup repository. — path to the network shared folder where backup files will be stored in the //SERVER/DIRECTORY format." canonical: "https://helpcenter.veeam.com/docs/agentforlinux/userguide/backup_repo_create_smb.html" breadcrumb: "User Guide > Performing Backup > Managing Backup Repositories > Creating Backup Repository > Creating Repository in SMB Share" dateModified: "2026-11-02" --- # Creating Repository in SMB Share To create a repository in an SMB share, use the following command: ``` veeamconfig repository create --name --type smb --location --username --password --domain --options ``` where: - `` — name for the backup repository. - `` — path to the network shared folder where backup files will be stored in the *//SERVER/DIRECTORY* format. - `` — account name that Veeam Agent will use to access the SMB network shared folder. - `` — domain in which the account that has access permissions on the shared folder is registered. - `` — options that Veeam Agent will use to mount the network shared folder to the Veeam Agent machine file system. You can use the standard Linux `mount` command content as mounting options. This parameter is optional. You can specify account name and domain for the SMB network shared folder using the `--username` and `--domain` parameters. If a password is required to access the network shared folder, you must also specify the `--password` parameter. When you run the `veeamconfig repository create` command`,` Veeam Agent will prompt you to type a password of the specified account. Alternatively, you can specify account name, password and domain for the network shared folder as values for the `--options` parameter. Note that these values will override values of the `--username`, `--password` and -`-domain` parameters. ## Examples Command with `--username`, `--password` and `--domain` parameters: ``` $ veeamconfig repository create --name VeeamBackup --type smb --location //srv02/VeeamRepository --username Administrator --password --domain srv02 ``` Command with `--options` parameter: ``` $ veeamconfig repository create --name VeeamBackup --type smb --location //srv02/VeeamRepository --options username=Administrator,password=P@ssw0rd,domain=srv02,port=666 ``` ::: tip If you mount a network shared folder to a directory in the Veeam Agent machine file system in advance, you can create the backup repository in the same way as in a local directory. For details, see [Creating Repository in Local Directory](backup_repo_create_local.md). :::