Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Le service de sauvegarde et de reprise après sinistre détecte les partages Server Message Block (SMB), anciennement appelés CIFS, sur un hôte Windows à l'aide d'identifiants Windows. Avant de pouvoir exécuter la découverte d'applications pour ajouter les partages SMB à la sauvegarde et à la reprise après sinistre, vous devez disposer des éléments suivants:
Pour découvrir les partages SMB, vous devez disposer d'identifiants Windows Server valides.
Suivez les instructions ci-dessous pour les valider:
Connectez-vous au serveur Windows cible en tant qu'utilisateur avec lequel vous souhaitez partager Backup and DR, et assurez-vous que tous les partages SMB que vous souhaitez sauvegarder sont visibles. Vous vous assurez ainsi que vous disposez du bon nom d'utilisateur et du bon mot de passe.
Si les partages SMB souhaités sont déjà mappés et présents, passez à l'étape suivante. Pour tous les nouveaux partages SMB, utilisez l'explorateur Windows pour mapper le partage SMB cible à une lettre de lecteur locale. Ne spécifiez pas d'identifiants supplémentaires lors du mappage du disque. Spécifiez Reconnecter à la connexion.
Installer l'agent Backup and DR et générer une clé secrète
Suivez ces instructions pour ajouter un hôte Windows Server à la console de gestion:
Dans la console de gestion, accédez à Gérer>Hôtes.
Sélectionnez + Ajouter un hôte.
Dans le formulaire Ajouter un hôte, saisissez le nom et un nom convivial facultatif.
Le nom d'un hôte doit commencer par une lettre et peut contenir des lettres et des chiffres (0 à 9). Les caractères de soulignement ('_') ne sont pas autorisés.
Saisissez l'adresse IP de l'hôte dans Adresse IP. Cliquez sur le signe plus + pour l'ajouter.
Dans la section Appliances (Appareils), sélectionnez les appareils gérés par la console de gestion qui servent cet hôte. Si la liste est longue, vous pouvez utiliser le champ de recherche pour trouver un appareil ou un groupe d'appareils spécifiques.
Laissez Host Type (Type d'hôte) sur Generic (Générique).
Dans les paramètres de l'agent de sauvegarde et de DR, procédez comme suit:
Le port de l'agent de sauvegarde et de reprise après sinistre est généralement le port 5106. Si ce n'est pas le cas, saisissez le numéro de port.
Ajoutez des identifiants pour l'hôte. Pour les partages SMB à découvrir, vous devez fournir un nom d'utilisateur et un mot de passe qui peuvent accéder à ces partages SMB et validés dans la section Identifiants du serveur Windows.
Vous devez fournir une clé secrète générée sur les serveurs hôtes Windows par l'agent de sauvegarde et de reprise après sinistre pour initialiser les communications fiables entre l'hôte et l'agent de sauvegarde et de reprise après sinistre. Cette opération ne doit être effectuée qu'une seule fois. Si vous ne disposez pas de la clé secrète, générez-en une en installant l'agent de sauvegarde et de DR sur un hôte Windows.
Cliquez sur Ajouter.
Découvrir les partages SMB
Pour ajouter des partages SMB, procédez comme suit:
Découvrez la découverte d'applications SMB à l'aide de l'une des méthodes suivantes:
Dans la console de gestion, cliquez sur le menu déroulant Sauvegarder et restaurer, puis sélectionnez Sauvegarder, puis Toutes les applications.
Accédez à Gestionnaire d'applications>Applications, sélectionnez Ajouter des applications, puis Toutes les applications.
Sélectionnez l'hôte que vous avez ajouté dans la section Ajouter un hôte SMB, puis cliquez sur Découvrir.
Une fois les partages SMB détectés, vous pouvez les trouver à l'aide du filtre SMB sur la page Applications.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eBackup and DR Service can discover Server Message Block (SMB) shares on a Windows host using valid Windows credentials, which must be validated beforehand by logging into the server and ensuring visibility of the target SMB shares.\u003c/p\u003e\n"],["\u003cp\u003eA Backup and DR agent must be installed on the Windows host, and a secret key generated by the agent is necessary for trusted communication between the host and the Backup and DR service.\u003c/p\u003e\n"],["\u003cp\u003eThe Windows server hosting the SMB shares needs to be added as a host in the Backup and DR management console, unless it's already added as a Compute Engine instance or VMware VM.\u003c/p\u003e\n"],["\u003cp\u003eTo discover SMB shares, you must use the management console to initiate application discovery, and the username/password for the host must be able to impersonate the user who mapped the shares.\u003c/p\u003e\n"],["\u003cp\u003eOnce the SMB shares have been discovered they can be backed up and restored using backup and DR, through specific application settings and restore functionalities respectively.\u003c/p\u003e\n"]]],[],null,["# Add a mapped SMB share\n\nBackup and DR Service discovers Server Message Block (SMB), formerly known as CIFS,\nshares on a Windows host using Windows credentials. Before you can run\napplication discovery to add the SMB shares to Backup and DR, you must have the\nfollowing:\n\n- [Windows server credentials](#validate)\n\n- [Backup and DR agent installed on Windows host](/backup-disaster-recovery/docs/configuration/windows-agent)\n\n- [Add host that has SMB shares](#host)\n\nWindows server credentials\n--------------------------\n\nTo discover SMB shares, you must have valid Windows server credentials.\n\nUse the following instructions to validate them:\n\n1. Log into the target Windows server as the user you intend to share with\n Backup and DR and ensure that all SMB shares that you want to back up are\n visible. This validates that you have the correct username and password.\n\n2. If the SMB shares that you want are already mapped and present, then move to\n the next step. For all new SMB shares, use Windows Explorer to map the\n target SMB share to a local drive letter. Don't specify additional\n credentials when mapping the drive. Specify **Reconnect at logon**.\n\nInstall the Backup and DR agent and generate secret key\n-------------------------------------------------------\n\nYou need to have the secret key to provide access to the SMB host.\nIf you haven't already done so,\n[install the Backup and DR Agent using the agent install](/backup-disaster-recovery/docs/configuration/windows-agent).\n\nAdd the SMB host\n----------------\n\n| **Note:** If you have added the Windows server to Backup and DR as a Compute Engine instance or as a VMware VM, then a host for this VM already exists and you don't need to add it again using the following procedure. Instead find and edit that host and proceed from [step 7](#step7).\n\nUse these instructions to add a new Windows Server host to the management console:\n\n1. In the management console, go to **Manage** \\\u003e **Hosts**.\n\n2. Select **+ Add Host**.\n\n3. In the **Add Host** form, enter the name and an optional friendly name.\n The name of a host must start with a letter, and can contain letters\n and digits (0-9). Underscore ('_') characters are not allowed.\n\n4. Enter the IP address of the host in **IP Address** . Click the **plus sign +**\n to add it.\n\n5. In the **Appliances** section, select the management console managed\n appliances that serve this host. If the list is long, you can use the search\n box to find a specific appliance or group of appliances.\n\n6. Leave **Host Type** as **Generic**.\n\n7. In the Backup and DR agent settings, complete the following steps:\n\n - Backup and DR agent port is normally port 5106. If it is anything else,\n enter the port number.\n\n - Add credentials for the host. For SMB shares that need to be discovered,\n you must supply a username and password that can access those SMB shares\n and validated in [Windows server credentials](#validate) section.\n\n - You need to supply a secret key generated on the Windows host servers by the\n Backup and DR agent, to initialize trusted communications between the\n host and Backup and DR agent. This only needs to be done once. If you don't\n have the secret key, generate one by\n [Install the Backup and DR agent on a Windows host](/backup-disaster-recovery/docs/configuration/windows-agent).\n\n8. Click **Add**.\n\nDiscover SMB shares\n-------------------\n\nTo add SMB shares, you must do the following:\n\n1. Discover the SMB application discovery using either of the following methods:\n\n - In the management console, click the **Back up \\& Recover** drop-down menu and select **Back up** , and then select **All Apps**.\n\n - Go to **App Manager** \\\u003e **Applications** , select\n **Add Applications** and then select **All Apps**.\n\n2. Select the host that you added in [Add SMB host](#host) section and click\n **Discover**.\n\n After the SMB shares are discovered, you can find them using the **SMB**\n filter in the **Applications** page.\n | **Note:** In order to find the share, the username and password for the host server must be set to the user that mapped the shares on the server. You can only find mapped shares for a user if a backup/recovery appliance can impersonate that user.\n\nWhat's next\n-----------\n\n- To view SMB-specific backup settings, see\n [Configure application settings to protect mapped SMB file system data](/backup-disaster-recovery/docs/backup/configure-app-settings-for-filesystems).\n\n- To restore an SMB share, see [Restore a mapped SMB file system](/backup-disaster-recovery/docs/access-data/filesystem-restore#restore_a_mapped_smb_file_system)."]]