cancel
Showing results for 
Search instead for 
Did you mean: 

Restauration bases SQL vers un dossier

Laurent69
Level 2

Bonjour,

Disposant d'une version de Backup Exec 2010 R2 et d'un agent SQL. Je souhaite effectuer une restauration/redirection de bases de données (SQL 2008 R2) vers un dossier spécifique. J'ai cependant un doute sur la méthode a utiliser.

Voici celle que j'ai tenter d'utiliser en vain...

Nouveau travail de restauration ==> Selection du serveur puis Microsoft SQL Server

j'ai ensuite cocher les bases en question (toutes sauf bases system).

Menu "Redirection SQL"

 

Lors de l'execution du travail de restauration, l'erreur est la suivante:

Erreur finale: 0xe0000398 - Avant de restaurer des données dans une base de données SQL Server existante, vérifiez que l'option 'Ecraser la base de données existante' est activée dans la section Propriétés du travail de restauration.

Je ne comprend pas du tout cette erreur qui me demande de valider l'écrasement des bases existantes alors que mon dossier est vide.

Pouvez-vous me confirmer la méthode a utiliser?

 

Merci d'avance,

Laurent

1 ACCEPTED SOLUTION

Accepted Solutions

pkh
Moderator
Moderator
   VIP    Certified

Suppose you are restoring database ABC whose physical files are currently stored in the C:\DB directory.  What you are doing is to say I want to restore ABC to the E:\Restauration directory.  Since you are switching location, you will not be using the files in the C:\DB directory so it is like overwriting these files with the restored database files in the E:\Restauration directory

If you are restoring to the same SQL instance and still want to keep your existing database, you re-direct the restore to a new database.  Use the first part of the SQL re-direction dialog and specify the SQL instance and a new database name.  This way, you would have your existing database and your restored database under a new database name.  Using the example above, you are restoring database ABC and you do not want to overwrite it, so you re-direct the restore to a new database called ABC-OLD and store it in the E:\Restauration directory.

View solution in original post

2 REPLIES 2

pkh
Moderator
Moderator
   VIP    Certified

Suppose you are restoring database ABC whose physical files are currently stored in the C:\DB directory.  What you are doing is to say I want to restore ABC to the E:\Restauration directory.  Since you are switching location, you will not be using the files in the C:\DB directory so it is like overwriting these files with the restored database files in the E:\Restauration directory

If you are restoring to the same SQL instance and still want to keep your existing database, you re-direct the restore to a new database.  Use the first part of the SQL re-direction dialog and specify the SQL instance and a new database name.  This way, you would have your existing database and your restored database under a new database name.  Using the example above, you are restoring database ABC and you do not want to overwrite it, so you re-direct the restore to a new database called ABC-OLD and store it in the E:\Restauration directory.

Laurent69
Level 2

Thank you for the response.

Laurent