Hello Jamie and thanks for your interest in the script.
When I setup a new vmware 1.x host I do the following.
Copy the script and its config file into /root
Make them executable (if they are not already) with
chmod +x backup_vmware.sh
chmod +x backup_vmware.conf
Then I download and install lzop (I use that as a compressor since it's faster than gzip) with the following commands:
cd /usr/local/src
wget
http://www.lzop.org/download/lzop-1.01-linux_i386.tar.gz
tar -zxvf lzop-1.01-linux_i386.tar.gz
cp lzop-1.01-linux_i386/lzop /usr/bin/lzop
Then I download and install sendEmail (since I want to receive notification emails with the result of the backup):
cd /usr/local/src
wget
http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.55.tar.gz
tar -zxvf sendEmail-v1.55.tar.gz
cp sendEmail-v1.55/sendEmail /usr/bin/sendEmail
After that I create a directory where to make the backups and mount my nas on it:
mkdir /mnt/openfiler-samba
and mount it to my openfiler's samba share
mount -t cifs -o user=myuser,password=mypassword //192.168.x.y/samba /mnt/openfiler-samba
Then I customize the backup_vmware.sh script with my custom parameters, specifically the following lines:
GUESTPATH="/var/lib/vmware/VirtualMachines"
BACKPATH="/mnt/openfiler-samba"
EMAILTO="
mye...@mydomain.com"
EMAILFROM="$HOST <$
HO...@mydomain.com>"
EMAILSRV="192.168.x.y"
And last but not least I enable my VMs for backup by running the script as follows:
cd /root
./backup_vmware.sh -ea
For example this will enable all my registered VMs for backup
Then check my settings by running the script with this options:
./backup_vmware.sh -D -c -s cold -f lzop
If all is ok I run the backup with the same command but removing the -c option (which forces the script to make a check and not to run the real backup)
./backup_vmware.sh -D -s cold -f lzop
You can then schedule the script with cron (remember to make it run it as root!)
Good luck with your backups!
Michele
----- Messaggio originale -----
> Da: Jamie Gadong <
jamie....@googlemail.com>
> A: vmsbackup <
vmsb...@googlegroups.com>
> Inviato: Mar 4 maggio 2010, 18:03:53
> Oggetto: [vmsbackup] The Basics
>
> Hi to all,
I am a bit of simpleton well at least I certainly feel like
> it. I have
read through the readme and the script itself and still can't get
> it
to run.
I am running Vmware Server 1 on Redhat 5 OS.
What
> are the absolute minimum changes I need to make to the script for
it to run.
> Bearing in mind LVM option is false and it is a cold
suspend
> backup.
Thanks to all that reply. If that is not clear enough please ask
> me a
question and I'll provide you any details required.
--
You
> received this message because you are subscribed to the Google Groups
> "vmsbackup" group.
To post to this group, send email to
> ymailto="mailto:
vmsb...@googlegroups.com"
> href="mailto:
vmsb...@googlegroups.com">
vmsb...@googlegroups.com.
To
> unsubscribe from this group, send email to vmsbackup+
> ymailto="mailto:
unsub...@googlegroups.com"
> href="mailto:
unsub...@googlegroups.com">
unsub...@googlegroups.com.
For
> more options, visit this group at
> href="
http://groups.google.com/group/vmsbackup?hl=en" target=_blank
> >
http://groups.google.com/group/vmsbackup?hl=en.