PowerShell script exchange
Post Reply
jed-hyper
Enthusiast
Posts: 39
Liked: 4 times
Joined: Feb 26, 2014 4:42 am
Full Name: Jed Parkes
Contact:

Run Import VBRBackup command and specify encryption password

Post by jed-hyper »

I'm trying to run this command

Code: Select all

Get-VBRServer | where {$_.Type -eq 'HvServer'} | Import-VBRBackup –FileName 'Y:\Veeam_Backups\BackupJob\BackupJob.vbm'
But when i run that command a dialog box appears with this message
'Backup is encrypted and will appear under Encrypted backups node until a valid password is supplied'
How can i run the Import VBRBackup command and specify encryption password?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

Currently, it is not possible via PS. So, it's still going to be two-step operation:

1) Import backup files via PS.
2) Decrypt backup files via GUI.

Thanks.
jed-hyper
Enthusiast
Posts: 39
Liked: 4 times
Joined: Feb 26, 2014 4:42 am
Full Name: Jed Parkes
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by jed-hyper »

Thanks for getting back to me so quick.
I need to be able to do this via powershell.
Is this option going to be added in a future release?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

Can't provide any comments regarding future versions. But Import-VBRBackup commandlet has been implemented at the time when no VB&R encryption existed, so, it's not that trivial to make it conceive encryption or work with encryption keys.

Anyway, thank you for the feedback; highly appreciated!
jed-hyper
Enthusiast
Posts: 39
Liked: 4 times
Joined: Feb 26, 2014 4:42 am
Full Name: Jed Parkes
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by jed-hyper »

Umm not 100% sure what you are asking?
I'm running the latest version of Veeam Backup & Replication 8.0.0.2084
I want to be able to run the Import-VBRBackup command and specify my encryption password so that i can automation a guest file (windows) restore.
I am curious if this option is going to be available in a future release of Veeam?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

Actually, I haven't asked anything, I just pointed out that I can't comment on future versions of our product at that moment.

What you're asking is not currently possible, and I've tried to give you some general explanation why it cannot be implemented immediately.

Thanks.
jed-hyper
Enthusiast
Posts: 39
Liked: 4 times
Joined: Feb 26, 2014 4:42 am
Full Name: Jed Parkes
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by jed-hyper »

ah ok, i'll just have to wait and see what happens then?
Is there somewhere where i should put a feature request?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

It's definitely not possible in version 9. Plans for next updates/versions are yet to be determined.

You've already put a feature request by posting on these forums. :)
Kyrowire
Service Provider
Posts: 24
Liked: 3 times
Joined: Jul 29, 2014 9:40 am
Location: Auckland, New Zealand
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by Kyrowire »

I would like to second this feature request.
wpeeters
Lurker
Posts: 2
Liked: never
Joined: Feb 29, 2016 7:07 am
Full Name: Wouter Peeters
Location: Belgium
Contact:

[MERGED] Specify password

Post by wpeeters »

An imported encrypted backup needs a password to move to the available backups.
-->Move from "Disk (encrypted)" to "Disk (imported)".
This functionality is not available in Power Shell.
Case # 01881583
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

As mentioned above, the given functionality does not exist in PowerShell at the moment. Thank you for the feedback, though; appreciated.
jed-hyper
Enthusiast
Posts: 39
Liked: 4 times
Joined: Feb 26, 2014 4:42 am
Full Name: Jed Parkes
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by jed-hyper »

In version 9.5 i can now use
Set-VBREncryptedBackupPassword
https://helpcenter.veeam.com/docs/backu ... tml?ver=95
Which is working great.
I have another issue now though
If i import a backup but DO NOT do the specify password step then it is listed in Veeam under backups as 'Disk (encrypted)'
I can't find a way with powershell to remove that backup without first unencrypting it.
This command does not work
Get-VBRImportedEncryptedBackup | Remove-VBRBackup -Confirm:$False
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Run Import VBRBackup command and specify encryption pass

Post by veremin »

Looks like a bug; we will investigate it further. Thanks for letting us know.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests