Comprehensive data protection for all workloads
Post Reply
hoFFy
Service Provider
Posts: 183
Liked: 40 times
Joined: Apr 27, 2012 1:10 pm
Full Name: Sebastian Hoffmann
Location: Germany / Lohne
Contact:

SureBackup: Ability to test fileserver / network share

Post by hoFFy »

Is there a way to test fileservers in SureBackup :?:

I don't mean the heartbeat / ping test, I would like to test if predefined network shares are accessable... :idea:
VMCE 7 / 8 / 9, VCP-DC 5 / 5.5 / 6, MCITP:SA
Blog: machinewithoutbrain.de
foggy
Veeam Software
Posts: 21139
Liked: 2141 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by foggy »

Sebastian, you can specify custom scripts to be executed against verified VMs.
hoFFy
Service Provider
Posts: 183
Liked: 40 times
Joined: Apr 27, 2012 1:10 pm
Full Name: Sebastian Hoffmann
Location: Germany / Lohne
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by hoFFy »

Yes thanks, thats nothing new to me.

I'm searching for "ready to run" scripts, like the ones which I could use for DNS, GC, etc.
VMCE 7 / 8 / 9, VCP-DC 5 / 5.5 / 6, MCITP:SA
Blog: machinewithoutbrain.de
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by nielsengelen »

hoFFy wrote:Yes thanks, thats nothing new to me.

I'm searching for "ready to run" scripts, like the ones which I could use for DNS, GC, etc.
You can make these yourself via XML, have a look at http://helpcenter.veeam.com/backup/80/v ... files.html

You will have to make the script/test yourself for the fileserver specific needs though.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
trobinson
Novice
Posts: 4
Liked: 3 times
Joined: May 02, 2011 6:04 pm
Full Name: Trent Robinson
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by trobinson » 3 people like this post

I don't know if you found an answer but I was looking to do the same thing. I ended up creating a batch file that does an if exists and returns 0. Then I created a role xml for File Servers that uses my custom script. When adding the role to a machine, you can change the variable of the test script to point to your share. I set mine to default to c$ so it will pretty much always pass by default so you should point it to your share. Hopefully this helps somebody else. I have a single Veeam server. If you have a more complicated environment this might not work depending on routing and stuff.

The batch looks for two arguments: "FSShare.bat 192.168.1.1 sharename" would test \\192.168.1.1\sharename

XML:
<SbRoleOptions>
<Role>
<SbRole>
<Id>come up with custom ID</Id>
<Name>File Server</Name>
</SbRole>
</Role>
<Options>
<SbVerificationOptions>
<ActualMemoryPercent>100</ActualMemoryPercent>
<MaxBootTimeoutSec>2100</MaxBootTimeoutSec>
<AppInitDelaySec>120</AppInitDelaySec>
<TestScripts>
<TestScripts>
<TestScript>
<Name>FileShareCheck</Name>
<Type>Custom</Type>
<TestScriptFilePath>FileServerTest.bat</TestScriptFilePath>
<Arguments>%vm_ip% c$</Arguments>
</TestScript>
</TestScripts>
</TestScripts>
<HeartbeatEnabled>True</HeartbeatEnabled>
<PingEnabled>True</PingEnabled>
</SbVerificationOptions>
</Options>
</SbRoleOptions>

Batch
if exist \\%1\%2 exit /b 0
exit /b 1

Put batch file in: C:\Program Files\Veeam\Backup and Replication\
Put XML file in C:\Program Files\Veeam\Backup and Replication\SbRoles\
hoFFy
Service Provider
Posts: 183
Liked: 40 times
Joined: Apr 27, 2012 1:10 pm
Full Name: Sebastian Hoffmann
Location: Germany / Lohne
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by hoFFy »

Old thread, I know....thank you Trent, I'll give it a try.
But again: It would be nice to have this feature integrated in Veeam, without using custom XMLs.
I personally believe that SureBackup is a really underestimated feature of Veeam. Is there any competitor in the backup market who can do something else?
We always tell our customers "you can have the best backup, but its nothing worth if you can't restore anything". Using the GUI with only a few clicks to test the entire environment (and I believe a fileserver is essential, like a dc, mail and sql is, too) would be really great!
VMCE 7 / 8 / 9, VCP-DC 5 / 5.5 / 6, MCITP:SA
Blog: machinewithoutbrain.de
capplanet22
Lurker
Posts: 2
Liked: 4 times
Joined: Jul 21, 2014 4:34 pm
Full Name: RS
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by capplanet22 »

I imagine you could use a net use command to map a drive and then remove it if you wanted to test accessibility. I personally just run chkdsk on them via psexec. Once you get the hang of how to do custom scripts for surebackup, it's not too much effort.
jpverlande
Lurker
Posts: 1
Liked: never
Joined: Mar 19, 2014 9:36 am
Full Name: Jean-Pierre Verlande
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by jpverlande »

Hi all,
Please note that in V9 the custom XML files must be placed in Backup/SBRoles for B&R and in Console/SBROLES for the console itself (even if the console is installed on the VBR server)
Of course you'll have to copy each XML file to any additional remote console you'll set up.
nefes
Veeam Software
Posts: 649
Liked: 170 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by nefes »

jpverlande wrote:Hi all,
Please note that in V9 the custom XML files must be placed in Backup/SBRoles for B&R and in Console/SBROLES for the console itself (even if the console is installed on the VBR server)
Of course you'll have to copy each XML file to any additional remote console you'll set up.
It is a known issue for vanilla v9, that was fixed in Update1.
So if anyone will read it having v9 Update1 or above, placing xml in Backup\SBRoles is sufficient.
mhee
Lurker
Posts: 2
Liked: never
Joined: Aug 26, 2020 10:56 am
Full Name: Mike Hinz
Contact:

Re: SureBackup: Ability to test fileserver / network share

Post by mhee »

Hello,

I added your script to my installation and wanted to implement it in my SureBackup Jobs.
Now I have the problem, that it always exits errorlevel 1 instead of 0.

The fileshares are existing, but the check cannot successfully verify that. Did others have the same problem and can tell me how to fix this?
Post Reply

Who is online

Users browsing this forum: No registered users and 71 guests