2010 27 August 2010

Vmware ESX / ESXi VM Copy and Migrate

Category: Technology - David Bombard @ 13:33

Often you have to migrate and move virtual machines from old to new version of ESX / ESXi to reorganize or even just to make the upgrade to Release 4.1.

I recommend FastSCP Veeam

Tags: backup , esx , ESXi , migration , migration , virtual machines , vm


2010 January 05 2010

ROBOCOPY

Category: Technology - David Bombard @ 11:04

Robocopy is a utility created by Microsoft to move, copy and synchronize files / folders in maintaining the security backup and migration.

It works on NTFS file system (from NT onwards)

And 'included in the Windows Resource Kit, freely downloadable from here with 7zip extract the necessary files are not installing the whole package
The copy is made only after a check on the diversity of the files / folders.

EXAMPLE:
ROBOCOPY source destination / MIR / SEC

synchronizes the folder structure retaining the permissions and audit data while maintaining the same source and destination (including cancellations attention!)

Tags: backup , copy , file , migrate , migration , robocopy , Windows


2009 17 August 2009

Make backups of virtual machines on NFS with VMware ESX / ESXi

Category: Linux , Technology - David Bombard @ 17:20

Often you have to make on backup virtual maccine. And as usual, without wanting to spend money on additional products.

The following procedure is based on well documented script Ghettovcb.sh

I have not invented anything I just tried to summarize all the steps.

If you find errors the comments are there on purpose.

Prerequisites:

Installed on the Workstation Vs Programs

Copy the script on the machine using WinSCP ESX7ESXi

Spostat elo script in the first data store, usually Datastore1, because ESXi does not delete everything in datastore strova to reboot.

Cambite execute permissions in 644 with the command chmod + x ghettoVCB.sh

Create a file that contains the name of the machines which make up

  • cd / vmfs/volumes/Datastore1
  • Write: I vmbackups
  • Press to enter the editing mode to insert Keyper there. write the name of the first machine to be saved and then enter the second and then press enter ..... then press enter.
  • Press Esc to exit from editing mode.
  • Type a colon ":" and then type wq and enter.

Now choose where to save the backup:

you can leave and save them locally via WinSCP every day

or mount an NFS datastore

Edit the script sesuenti linne, tlo script is commented very well you should not find difficult.

  • VM_BACKUP_VOLUME = / vmfs / volumes / backup (this is the path to your NFS share)
  • ENABLE_2GB_SPARSE = 0 (set it to 1 ise you want to split the VMDK infile 2 GB)
  • VM_BACKUP_ROTATION_COUNT = 3 (number of backups to keep before deleting the oldest)
  • VM_BACKUP_DIR_NAMING_CONVENTION (Leave it as it is)
  • POWER_VM_DOWN_BEFORE_BACKUP = 0 (I'm going to 0 (zero) a live backup)
  • ENABLE_HARD_POWER_OFF = 0 (I change to 0 (zero) to disable a hardware off)
  • ITER_TO_WAIT_SHUTDOWN = 4 (I leave it as is)

Ok now go to the folder and run the script. / GhettoVCB.sh vmbackups to back up ......

You'll see a status similar to that avazamento below.

[Root @ esx1 testbackup] #. / Backup ghettoVCB.sh
# # # # # # # # # # # # # # # # Taking backup snapshot for machine1 ... # # # # # # # # # # # # # # # #
Destination disk format: VMFS thick
Cloning disk '/ vmfs/volumes/Produzione/MACCHINA1/MACCHINA1.vmdk' ...
Clone: ​​100% done.
Removing snapshot from MACCHINA1 ...
# # # # # # # # # # # # # # # # # # # # Completed backup for MACCHINA1! # # # # # # # # # # # # # # # # # # # #

Start time: Wed Aug 19 14:50:14 EDT 2009
End time: Wed Aug 19 14:57:37 EDT 2009
Duration: 7.38 Minutes

Completed backing up specified Virtual Machines!

At this point we have verified that everything fuziona go as we would like to schedule a recursive process.

We copy plink on our VirtualCenter or on an other machine if we use ESXi

We create a file with notepad called backupesx.cmd

with a syntax similar to the following

c: \ putty \ plink.exe root@10.10.10.1 -pw password "nohup ./vmfs/volumes/datastore1/ghettoVCB.sh / vmfs/volumes/datastore1/vmbackups> / & vmfs/volumes/datastore1/backuplog.txt"

where

c: \ putty \ plink.exe is the location where torvare plink

root@10.10.10.1 address is root @ ESX / ESXi server

. Poassword where pw password is the password of root sull'esx

./vmfs/volumes/datastore1/ghettoVCB.sh location script

/ Vmfs/volumes/datastore1/vmbackups file that contains the machines to be backed up

/ Vmfs/volumes/datastore1/backuplog.txt locazionedel log backup

Scheduliamo job in the scheduled tasks in the manner of windows operating system ....

For more help on the script ghettoVCB.s refer here

At this point you do not have it because the log send by email .... downloaded blat

and eseguit blat.exe filename to be sent-server indirizzo_del _SERVER indirizzo_mittente-f-to address _destinatario

blat.exe backuplog.txt IPSMTPSERVER-server-to-f ESXBACKUP@bomby.it davide@bomby.it

Tags: backup , esx , ESXi , VMware


2009 June 08 2009

Change Language Backup Exec

Category: Technology - David Bombard @ 16:06

How to change the display language of the software Symantec Backup Exec

Open the registry editor

HKEY_LOCAL_MACHINE \ Software \ Veritas \ Backup Exec
Language to create a String with the language string

Eg:
EN for English
IT for Italian

Tags: backup , Backup Exec , to change , language , Symantec , Veritas


2008 December 05 2008

Zetafax BACKUP FOR Disaster Recovery

Category: Technology - David Bombard @ 15:48
  1. Create a CMD file with the code listed below replace SERVER IP with the IP of the server
  2. CMD copy the folder c: \ zfaxbackup created on C:
  3. copairvi robocopy
  4. stop all services Zetafax
  5. launch the CMD
  6. wait for it to finish
  7. be happy

rem copia utenti e cartelle personali
robocopy \\IP SERVER\zfax\Users c:\zfax\users *.* /s /sec /log+:c:\zfaxbackup
rem copia archivi fax ricevuti
robocopy \\IP SERVER\zfax\Server\Z-RECD c:\zfax\Server\Z-RECD *.* /s /sec /log+:c:\zfaxbackup
rem copia archivi fax inviati
robocopy \\IP SERVER\zfax\Server\Z-SENT c:\zfax\Server\Z-SENT *.* /s /sec /log+:c:\zfaxbackup
rem copia log server
robocopy \\IP SERVER\zfax\Server\Z-DB c:\zfax\Server\Z-DB *.log /s /sec /log+:c:\zfaxbackup
rem copia rubriche e indici
robocopy \\IP SERVER\zfax\Server\Z-DB c:\zfax\Server\Z-DB ADB*.* /s /sec /log+:c:\zfaxbackup
rem copia coda attiva
robocopy \\IP SERVER\zfax\Server\Z-DB c:\zfax\Server\Z-DB Queue.* /s /sec /log+:c:\zfaxbackup
rem copia copertin
robocopy \\IP SERVER\zfax\System\Z-COVER c:\zfax\Server\Z-COVER *.* /s /sec /log+:c:\zfaxbackup
rem copia carte d alettera
robocopy \\IP SERVER\zfax\System\Z-LETTER c:\zfax\Server\Z-LETTER *.* /s /sec /log+:c:\zfaxbackup
rem copia allegati
robocopy \\IP SERVER\zfax\System\Z-GRAPH c:\zfax\Server\Z-GRAPH *.* /s /sec /log+:c:\zfaxbackup
rem copia configurazione
robocopy \\IP SERVER\zfax\System\Z-DB c:\zfax\Server\Z-DB *.* /s /sec /log+:c:\zfaxbackup
rem copia configurazione gateway smtp
robocopy \\IP SERVER\zfax\MAIL\Data c:\zfax\MAIL\Data *.* /s /sec /log+:c:\zfaxbackup

Tags: backup , Zetafax


Page 1 of 1 1