PowerShell script exchange
Post Reply
AlexWeit
Influencer
Posts: 18
Liked: never
Joined: Apr 04, 2018 9:49 am
Full Name: Alexander Weit
Contact:

Filename after VeeamZIP

Post by AlexWeit »

Hello,

i use a PS script for creating a zip file. Now I need a script to get the filename like the properties in the GUI (Backup>VeeamZIP>Properties: Repository, Folder, Files).

Dont found the Information in the current Posts.

Can anyone help? Thanks.
Alex Uryumtsev
Enthusiast
Posts: 51
Liked: 7 times
Joined: Oct 29, 2018 9:56 am
Full Name: Alexander Uryumtsev
Contact:

Re: Filename after VeeamZIP

Post by Alex Uryumtsev »

Hi Alex and welcome to the community.

Please check the following post it would help you.

If you have any questions left, let me know.

BR,
Alex
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Filename after VeeamZIP

Post by veremin »

Otherwise, you can verify whether VeeamZIP session ended successfully, check the given folder (selected as backup target) for the latest file created as well as its name. Thanks!
AlexWeit
Influencer
Posts: 18
Liked: never
Joined: Apr 04, 2018 9:49 am
Full Name: Alexander Weit
Contact:

Re: Filename after VeeamZIP

Post by AlexWeit »

Hi, thanks for the quick solution. I have just come to the test. My goal is self-government. VeeamZip should search for a place and drop the zip.

After that, the file name and location should come out (or the details as in the GUI >Backup>VeeamZIP>Properties: Repository, Folder, Files), which I can process further.

Code: Select all

Add-PSSnapin veeampssnapin

$server = "VM"
$vm = Find-VBRViEntity -Name $server
$rep = Get-VBRBackupRepository -ScaleOut -Name "*IC1"

#VeeamZip
$ZIPSession = Start-VBRZip -BackupRepository $rep -Entity $vm -AutoDelete In2Weeks
BR
Alex
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 18 guests