Creating Repository in SMB Share

In this article

    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 --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.
    • <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 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. Mind 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

     

    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.