--- title: "Creating Repository in SMB Share" description: "To create a repository in an SMB share, you must specify a name for the repository, a path to the network shared folder in which Veeam Agent will create backup files, a type of the network shared folder and additional mounting options." canonical: "https://helpcenter.veeam.com/docs/agentformac/userguide/backup_repo_create_smb.html" breadcrumb: "User Guide > Performing Backup > Managing Backup Repositories > Managing Backup Repositories in Command Line Interface > Creating Backup Repository > Creating Repository in SMB Share" dateModified: "2026-10-20" --- # Creating Repository in SMB Share To create a repository in an SMB share, you must specify a name for the repository, a path to the network shared folder in which Veeam Agent will create backup files, a type of the network shared folder and additional mounting options. To do this, use the following command: ``` veeamconfig repository create --name --type smb --location --username --password --domain ``` where: - `` — name for the backup repository. - `` — path to the network shared folder where backup files will be stored in the //SERVER/FOLDER format. ::: important If the directory to which the shared folder should be mounted resides on the backed-up volume, the backup job may fail. ::: - `` — 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. Mind that if you specify `--password` parameter, Veeam Agent will prompt you to specify a password for the SMB network shared folder. ## Examples Command with `--username, --password, --domain` parameters: ``` $ veeamconfig repository create --name VeeamBackup --type smb --location //srv02/VeeamRepository --username Administrator --password --domain srv02 ``` ::: tip - If you mount a network shared folder to a folder in the Veeam Agent machine file system in advance, you can create the backup repository in the same way as in a local folder. For details, see [Creating Repository in Local Folder](backup_repo_create_local.md). - macOS may save CIFS/SMB credentials in a cache. As a result, if credentials have been changed, Veeam Agent for Mac uses obsolete credentials and fails to connect to shared folders. To refresh cached credentials, reboot the Veeam Agent computer. :::