Entries Tagged as ''

VMware Backup Pre- And Post-Commands

Version of ESX Custom quiescing script directory
ESX/ESXi 3.5 Update 1 or earlier
C:\Windows\<pre-freeze-script.bat>
C:\Windows\<post-thaw-script.bat>
ESX/ESXi 3.5 Update 2 or later
C:\Program Files\VMware\VMware Tools\backupScripts.d\
ESX/ESXi 4.x C:\Windows\backupScripts.d\
ESXi 5.0
C:\Windows\
C:\Program Files\VMware\VMware Tools\backupScripts.d\
ESXi 5.1 and ESXi 5.5
C:\Windows\<pre-freeze-script.bat>
C:\Windows\<post-thaw-script.bat>

Windows:

To create a sample wrapper script,  you can create a text file and name it vcb.bat.
echo off
if "%1" == "freeze" goto doFreeze
goto doThaw
:doFreeze
call c:\windows\pre-freeze-script.bat
goto EOF
:doThaw
call c:\windows\post-thaw-script.bat
:EOF

Linux:

For Linux VMs, the scripts should be named

     /usr/sbin/pre-freeze-script

     /usr/sbin/post-thaw-script

Both must have 0755 permissions so that they are executable, and should be owned by root.

Veeam:
Make sure that ““Enable VMware Tools quiescence” is enabled, cauusing the scripts to be call to.

HOWTO: How do I list applications using network ports?

netstat -nabo

C:\WINDOWS\system32>netstat -nabo

Active Connections

Proto      Local Address        Foreign Address      State                   PID
TCP        0.0.0.0:80               0.0.0.0:0                  LISTENING     4

Can not obtain ownership information
TCP        0.0.0.0:135              0.0.0.0:0                  LISTENING 1004
RpcSs
[svchost.exe]
TCP        0.0.0.0:445            0.0.0.0:0                   LISTENING       4

Robocopy usage

As I use more often RoboCopy to get files from one server to the other. Here is what I use to get this done:

@ECHO OFF
 ROBOCOPY "<source>" "<target>" /COPYALL /DCOPY:T /MIR /SEC /e /R:1 /W:1 /mt:4 /LOG:"C:\temp\<filename>.log"
 exit