Create Backupjobs with Powershell

PowerShell script exchange

Create Backupjobs with Powershell

Veeam Logoby Achim.Z. » Mon Aug 09, 2010 8:49 am

Hi together;

first: I am a n00b in Powershell, usually i use VB(s).
For one of our customers, I tried to create the backupjobs in Veeam 4.1 with powershell.
I tried to use the following command:

Add-VBRBackupJob JobName NET "nbd" "NAS.fqdn" "\Backup\Veeam" "BackupFileName" -Objects "vMachine.fqdn"

JobName = name of the job
NET "nbd" = BackupType "Network" with no additional options
NAS.fqdn = Target NAS with full qualified domain name
\Backup\Veeam = share on NAS with one subdirectory
BackupFileName = name the "created" file shall have
-Objects "vMachine.fqdn" = what virtualmachine should be backuped


As i understood from help, NAS.fqdn is the destination of the backup. It is the "Host".
I get the errormessage: "Unknown host"
If i try to ping the NAS by IP or by name from the Servermachine where VeeamBackup is running, I always get the right answers.
If create the job via gui, it works well.

We use Veeam 4.1 VCenter 4.1 and ESX4 (will be updated)

thank 4 help/ideas
Achim Z.
Achim.Z.
Novice
 
Posts: 9
Liked: never
Joined: Mon Aug 09, 2010 6:42 am

Re: Create Backupjobs with Powershell

Veeam Logoby Gostev » Mon Aug 09, 2010 8:59 am

Hello, when backing up to share, target should be specified as "My Computer" (just like when you are setting the job with UI).

Also, please not there are existing topics about creating the job with PowerShell (can be useful):
http://www.veeam.com/forums/search.php?keywords=Add+VBRBackupJob
Gostev
Veeam Software
 
Posts: 21390
Liked: 2349 times
Joined: Sun Jan 01, 2006 1:01 am
Location: Baar, Switzerland

Re: Create Backupjobs with Powershell

Veeam Logoby Achim.Z. » Mon Aug 09, 2010 9:02 am

Thanks, wasn't sure - but now i am
Achim.Z.
Novice
 
Posts: 9
Liked: never
Joined: Mon Aug 09, 2010 6:42 am


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests