Comments on: new release – snowball – all about the restore https://dbatools.io/snowball/ the community's sql powershell module Fri, 13 Sep 2019 08:12:05 +0000 hourly 1 https://wordpress.org/?v=5.3.4 By: Stuart Moore https://dbatools.io/snowball/#comment-61255 Fri, 05 Apr 2019 09:37:31 +0000 https://dbatools.io/?p=3050#comment-61255 Hi Martins, you would do that with this command:
Restore-DbaDatabase -SqlInstance server1 -Path c:\backups -DatabaseName NewName -ReplaceDbNameInFile

This will restore the database as NewName and also replace the old name in the Database filenames to avoid any clashes

]]>
By: Stuart Moore https://dbatools.io/snowball/#comment-61254 Fri, 05 Apr 2019 09:32:50 +0000 https://dbatools.io/?p=3050#comment-61254 Hi Raj,
To continue the restore you’d issue this command:
Restore-DbaDatabase -SqlServer testserver2 -Continue -Path ‘\\testserver1\Backup\xxxx$testerver1\testdb’ -MaintenanceSolutionBackup

This will recover your database. If you want to be able to restore more log files, then use this:
Restore-DbaDatabase -SqlServer testserver2 -NoRecovery -Continue -Path ‘\\testserver1\Backup\xxxx$testerver1\testdb’ -MaintenanceSolutionBackup

Hope that helps

]]>
By: Raj https://dbatools.io/snowball/#comment-60945 Wed, 03 Apr 2019 17:01:04 +0000 https://dbatools.io/?p=3050#comment-60945 Thank you so much, this is so helpful.
I have question in regards to applying the last few days logs for a already restored(in-recovery) Database using Restore-DbaDatabase -SqlServer testserver2 -NoRecovery -Path ‘\\testserver1\Backup\xxxx$testerver1\testdb’ -MaintenanceSolutionBackup

is there a trick available like the above that

]]>
By: Martins https://dbatools.io/snowball/#comment-19453 Tue, 09 Oct 2018 11:09:53 +0000 https://dbatools.io/?p=3050#comment-19453 Hello,
How to restore database to a new name (for example MyDB_new)? I don’t want to REPLACE.

[Restore-DbaDatabase] Failure | Database My_DB exists, so WithReplace must be specified

]]>
By: Greg N https://dbatools.io/snowball/#comment-11302 Thu, 16 Aug 2018 23:46:51 +0000 https://dbatools.io/?p=3050#comment-11302 Thank you Thank you Thank you
One line command I just restored 32 databases with Ola Hallengren backups and 3 days of logs.
Many hours of work made easy.

Where do I send the chocolates?

]]>
By: Mulham https://dbatools.io/snowball/#comment-11191 Mon, 13 Aug 2018 13:38:47 +0000 https://dbatools.io/?p=3050#comment-11191 Thanks for this great work. Is there any way of making -filemapping switch dynamically populated based on running this query: select name, filename from sysfiles ? I was trying something like this without luck.

$query=invoke-sqlcmd -ServerInstance $instanceName -Database $Databasename -Query “select name,filename from sysfiles”
$Finalquery=$query| %{“‘”+'{0}” =”{1}”{2}{3}’ -f $_[0],$_[1],$_[2],$_[3] }
$FileMapping =@{}

]]>
By: Chrissy LeMaire https://dbatools.io/snowball/#comment-488 Tue, 11 Apr 2017 13:55:23 +0000 https://dbatools.io/?p=3050#comment-488 Hey Gordon, Thanks so much for the note 😀 We’re so happy that you enjoy dbatools. I’ve asked Stuart to investigate support for 3rd parties! https://github.com/dataplat/dbatools/issues/1035

]]>
By: Gordon https://dbatools.io/snowball/#comment-487 Tue, 11 Apr 2017 13:24:23 +0000 https://dbatools.io/?p=3050#comment-487 Great work. Unfortunately, those of us who use a 3rd party backup tool (we use Litespeed in our shop) cannot use the Backup/Restore bits of dbatools. But I do use it for so many other things!!

]]>
By: anil https://dbatools.io/snowball/#comment-254 Tue, 07 Mar 2017 17:26:39 +0000 https://dbatools.io/?p=3050#comment-254 Awesome work – Very impressive and helpful !!

]]>
By: Using dbatools for automated restore and CHECKDB - Centino Systems Blog https://dbatools.io/snowball/#comment-232 Sat, 04 Mar 2017 14:14:40 +0000 https://dbatools.io/?p=3050#comment-232 […] server and run CHECKDB on them. There’s some cmdlets in the dbatools project, in particular the Snowball release that really make this easy. In this post I’m going to outline a quick solution I had to […]

]]>