VMware: Backing up your ESX Configuration/VMX files

This is a quick/easy/down/dirty way of backing up your ESX configuration information.

You’ll need to add a cron job, and create a script to run that cron job.

Here’s the script that I used to mount a Windows share, copy the files over, and then unmount the Windows share (I saved it in /root as
mount -t smbfs //windowsserver/sharename /mountpoint -o username=user/DOMAIN,password=password

cd /mountpoint/ESX_Backups/

rm -rf ./old.$HOSTNAME/

mv ./$HOSTNAME/ ./old.$HOSTNAME/


cd /

cp -duR /etc/ /mountpoint/ESX_Backups/$HOSTNAME/

cp -duR /home/ /myappro/ESX_Backups/$HOSTNAME/

umount /mountpoint
For this to work properly, in your Windows share, you will already need to have a folder named ESX_Backups (it is case sensitive).

You’ll need to figure out where you mount point is going to be, where you can mount the Windows share to.

Also, make sure you do a chmod 700 so this file will be executable.

By copying all files in /etc/ and /home/ I get all ESX config files, and VM config files. You could modify this to be more specific, but I didn’t see the need to. I like the KISS method.

Now I made a cron entry like this:
10 23 * * * * root /root/ > /dev/null 2>&1
And saved it as /etc/cron.d/, with a chmod 500 for it.

Simple, effective, & very little time to implement. And now I have the past 2 days worth of ESX and VM config.

Read more


VMware: Full path in ESX 2.5/3.0 Service Console

This is an old post, but I redid the blog…
Not sure how many of you use PuTTY and the COS, but I figured I’d post this tidbit.

I got tired of looking at just
[root@host log]# for my prompt.
Showing only my current directory

I would rather have
[root@host /var/log]#
Which shows the full path

You can modify the /etc/bashrc file ( back it up first!!!) to change this.

Look for this line in the /etc/bashrc file:
[ “$PS1” = “\s-\v\$ ” ] && PS1=”[u@h W]\$ “

Change it to:
[ “$PS1” = “\s-\v\$ ” ] && PS1=”[u@h w]\$ “

Notice the uppercase “W” became a lowercase “w”. Save the file and log off/log on. Look at your prompt. Now, I have no questions as to which directory I’m in.

Here’s a link to the original post:

Posted by Jase to Computer Stuff at 3/16/2006 02:19:11 PM

Read more


Citrix: Exporting Citrix XP FR2 Applications for import into Citrix PS 4.0

Well, here’s the script that I used to export apps from a Citrix XP FR2 farm for import into a Citrix PS 4.0 farm.

I started out with the FarmAppUtil from Citrix (for XP FR3 and above), and looked at the output XML. I then took Michael Callahan’s script, and modified it to export the XML to “match up” with the format of the newer XML.

So here were my steps:

1. Export with FarmAppExport.wsf
2. Import with FarmAppUtil, which is tested on XP FR3 and above.

Just a note: I had to manually create a MFCOMFolder.txt file with the folders in my old farm. Maybe my next version will have the ability to export this as well.

Posted by Jase to Computer Stuff at 3/16/2006 10:07:27 AM

Read more