Deploying Hardened Repository

In this article

    Deploying a hardened repository is similar to setting up a Linux backup repository but the hardened repository is an exclusive role on a server with single-use credentials and with enabled Make recent backups immutable for check box.

    Tip

    We recommend to build a hardened repository with both single-use credentials and immutability features to maximize data security. You can still add a repository with single-use credentials but without immutability.

    Before you deploy a hardened repository, check limitations and considerations and security recommendations.

    If you want to deploy a hardened repository, perform the following steps:

    1. Prepare the directory on the Linux server for backups.
    2. Add the Linux server to the backup infrastructure.
    3. Add the backup repository role to the Linux server and enable the immutability feature.

    If you want to use the Linux repository existing before Veeam Backup & Replication 11a, you can upgrade it to the hardened repository.

    Step 1. Prepare Directory on Linux Server for Backups

    Create a separate folder where immutable backups will be stored. Allow access to this folder only for the account that you plan to use to connect to the Linux server. Use the following commands:

    mkdir <folder_path>

    where <folder_path> — path to the folder you are creating.

    chown -R owner:group <folder_path>

    Both owner and group can be the account that you plan to use to connect to the Linux server.

    chmod 700 <folder_path>

    Step 2. Add Linux Server to Backup Infrastructure

    Alternatively, you can use a Linux server that is already added to a backup infrastructure. To add new server, use the New Linux Server wizard. For more information, see Adding Linux Servers.

    Pay attention to the following settings at the Step 3. Specify Credentials and SSH Settings:

    • Use temporary credentials to avoid storing the credentials in the Veeam Backup & Replication configuration database. To do that, click Add and select Single-use credentials for hardened repository.
    • In the Credentials window, within the user account that you plan to use to connect to the Linux server select the Use "su" if "sudo" fails check box. The Elevate account privileges automatically check box is used by default. Both selected check boxes mean if the user is not in the sudoers file you can use su command instead of sudo.

    After the user will have temporary root- or sudo-permissions you can remove the user from the sudo group after the server is added. Further, you can use the immutability feature with an existing repository if you have enough rights to use this repository as a user without root credentials. For more information about these check boxes, see Linux Accounts (User Name and Password).

    Deploying Hardened Repository 

    Step 3. Add Backup Repository Role to Linux Server and Enable Immutability Feature

    Use the New Backup Repository wizard to add new backup repository. For more information, see Adding Backup Repositories. Pay attention to the following steps:

    • In the Add Backup Repository window, select the Direct Attached Storage > Linux type of the backup repository.
    • At the Step 4. Configure Backup Repository Settings, select the Make recent backups immutable for check box and specify the immutability time period.

    After you added the host (for single-use credentials) or the repository (for persistent credentials), disable SSH connection for the account that you plan to use to connect to the Linux server. If you can work with the server from the console, disable SSH connection for the server itself.

    Important

    Once a backup file becomes immutable, it can be merged or deleted only when the immutability time period expires. For this reason, if you want to store backup files in a hardened repository with immutability, you must enable active full backup or synthetic full backup in the backup job settings.

    Upgrading Existing Linux Repository to Hardened Repository

    To upgrade the Linux repository existing before Veeam Backup & Replication 11a to the hardened repository, perform the following steps:

    1. Change access to the folder where immutable backups are stored. Allow access to this folder for the account that you plan to use to connect to the Linux server. Use the following command:

    chown -R username:groupname <folder_path>

    where <folder_path> — path to the folder.

    1. Edit server settings and use Single-use credentials for hardened repository at the Step 3. Specify Credentials and SSH Settings.
    2. Editing settings of the backup repositories and select the Make recent backups immutable for check box and specify the immutability time period at the Step 4. Configure Backup Repository Settings.