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

Filename after VeeamZIP

Post by AlexWeit » Jan 03, 2019 9:07 am

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 » Jan 03, 2019 1:37 pm

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: 16699
Liked: 1394 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Filename after VeeamZIP

Post by veremin » Jan 03, 2019 6:04 pm

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
Novice
Posts: 5
Liked: never
Joined: Apr 04, 2018 9:49 am
Full Name: Alexander Weit
Contact:

Re: Filename after VeeamZIP

Post by AlexWeit » Jan 30, 2019 12:44 pm

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: Bing [Bot], JTT and 4 guests