This is an archive version of the document. To get the most up-to-date information, see the current version.

Creating Repository in SMB Share

To create a repository in an SMB share, use the following command:

veeamconfig repository create --name <repository_name> --type smb --location <path_to_repository>  
--username <user_name> --password <password> --domain <domain> --options <mounting_options>

where:

  • <repository_name> — name for the backup repository.
  • <path_to_repository> — path to the network shared folder where backup files will be stored in the //SERVER/DIRECTORY format.
  • <user_name> — account name that Veeam Agent will use to access the SMB network shared folder.
  • <password> — password that Veeam Agent will use to access the SMB network shared folder. This parameter is optional. If you do not use this option, you will be prompted to type a password of the specified account.
  • <domain> — domain in which the account that has access permissions on the shared folder is registered.
  • <mounting_options> — 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, password and domain for the SMB network shared folder using --username, --password and --domain parameters or --options parameter. Mind that if you specify account name, password and domain as values of the --options parameter, these values will override values of --username, --password and --domain parameters.

Examples

Command with --username, --password, --domain parameters:

$ veeamconfig repository create --name VeeamBackup --type smb --location //srv02/VeeamRepository --username Administrator --password P@ssw0rd --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

Creating Repository in SMB Share 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.