DFPITC
asked on
Trying to use powershell with veeam free and it's not working
Trying to setup veeam free to schedule backups from a hyperv server.
If I run it manually from veeam UI it works fine.
I'm using this script:
It looks like it's trying to backup, however, it never writes a file, and it returns this:
If I run it manually from veeam UI it works fine.
I'm using this script:
Add-PSSnapin VeeamPSSnapin
$vms = "adminws"
$netcreds = Get-VBRCredentials -Name "bknas\vmbackups"
foreach($vmname in $vms){
$vm = Find-VBRHvEntity -Name $vmname
Start-VBRZip -Folder "Y:\vms" -Entity $vm -Compression 5 -DisableQuiesce -NetworkCredentials $netcreds
}
It looks like it's trying to backup, however, it never writes a file, and it returns this:
EventNotifier : Veeam.Backup.Core.CEventNotifier
BottleneckManager : CJobBottleneckManager
Info : Veeam.Backup.Model.CBackupSessionInfo
Progress : Veeam.Backup.Model.CBackupProgressData
StartupMode : Normal
JobSourceType : HyperV
CurrentPointId : 00000000-0000-0000-0000-000000000000
OriginalSessionId : 73e8e2fd-7784-4df8-adc5-ed13ca85782d
IsFullMode : True
IsRetryMode : False
IsRecheckRetry : False
IsQuickBackup : False
IsVeeamZip : True
IsPlannedFailover : False
IsReplicaFromBackup : False
IsAdHocBackup : False
PostActivity : AskService
Name : adminws_2018-02-21T223729 (Active Full)
OrigJobName : adminws_2018-02-21T223729
BackupStats : Veeam.Backup.Model.CBackupStats
WorkDetails : Veeam.Backup.Core.CBackupSessionWorkDetails
WillBeRetried : False
IsManuallyStopped : False
IsTransformLaunched : False
LastProgressSaveTime : 1/01/0001 12:00:00 AM
SessionCryptoSpec : Veeam.Backup.Crypto.CCryptoSymmetricSpec
UserKey :
MasterKey :
UserCryptoSpec :
SelectiveProcessingSpec :
BackupVerificationResult :
IsEncryptionEnabledByOptions : False
IsEncryptionEnabled : False
SplitStoragesPerVm :
DataBag : {}
SessionInfo : Veeam.Backup.Model.CBackupSessionInfo
Id : 73e8e2fd-7784-4df8-adc5-ed13ca85782d
LeaseId : 00000000-0000-0000-0000-000000000000
JobType : Backup
JobName : adminws_2018-02-21T223729
JobSpec : <FreeBackupSpec><JobId>211225f1-a77a-4f67-b906-51df9d6bd4f1</JobId><JobName>adminws_2018-02-21T223729</JobName><VmName>adminws</VmName><Platform>EHyperV</Platform><BackupObjects><ObjectId>3a56eff7-9728-4c9e-b2ab-a7f68df95a1d</ObjectId></BackupObjects><UseRepository>False</UseRepos
itory><RepositoryId>00000000-0000-0000-0000-000000000000</RepositoryId><FolderName>Y:\vms</FolderName><CredsId>5746e0af-fdad-4999-be92-0b5d97fa62f2</CredsId><CompressionLevel>5</CompressionLevel><VmToolsQuiesce>False</VmToolsQuiesce><PwdKeyId>00000000-0000-0000-0000-000000000000</
PwdKeyId><ModifiedBy>RCSA-INT\techsupport</ModifiedBy></FreeBackupSpec>
JobTypeString : Backup
CreationTimeUTC : 21/02/2018 10:37:29 PM
Operation :
Description :
BaseProgress : 100
IsCompleted : True
IsWorking : False
IsStarting : False
IsPostprocessing : False
JobId : 211225f1-a77a-4f67-b906-51df9d6bd4f1
Result : Failed
State : Stopped
EndTime : 21/02/2018 10:37:56 PM
EndTimeUTC : 21/02/2018 10:37:56 PM
CreationTime : 21/02/2018 10:37:29 PM
AuxData : <AuxData><CBackupSessionWorkDetails><WorkDuration>268086708</WorkDuration></CBackupSessionWorkDetails><SessionStarterInfo Version="1" UserName="techsupport" UserDomainName="RCSA-INT" RunManually="True" LoginType="0" /></AuxData>
IsLowerAgentPriority : True
LogName : Job.adminws_2018-02-21T223729
LogsSubFolder : adminws_2018-02-21T223729
Logger : Veeam.Backup.Core.XmlLogger
Tracer : Veeam.Backup.Core.CSessionLogTracer
Possibilities the limitations for Veeam free!
ASKER
No, this is certainly possible with veeam free edition.
I have had this working before, i'm just not sure what's wrong.
I have had this working before, i'm just not sure what's wrong.
You are using Update 2, which this has been changed in...
see here
https://www.veeam.com/blog/veeam-backup-free-edition-now-with-powershell.html
see here
https://www.veeam.com/blog/veeam-backup-free-edition-now-with-powershell.html
ASKER
I don't understand what you're saying?
I downloaded the latest version, so it has powershell support.
I downloaded the latest version, so it has powershell support.
So you have downloaded v2 as per link which confirms this version has Powershell support!
and if you use the script in the link does it work for you!
(Hyper-V script at the bottom of page!)
and if you use the script in the link does it work for you!
(Hyper-V script at the bottom of page!)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm getting no-where with this line of questioning