Solved

backup virtual machine, rsync inplace is ok?

Posted on 2009-06-29
10
1,282 Views
Last Modified: 2012-08-14
I want to backup VM every night.
I've made a script that suspend VM and then make a backup by rsync with option --inplace.
I've seen that each file is recreated and the total time to make about is more than 1 hour.
First question : is the option "inplace" correct?
Second question : is there anyway to make a faster backup? thank you
0
Comment
Question by:tratti
  • 5
  • 3
  • 2
10 Comments
 
LVL 18

Expert Comment

by:larstr
ID: 24734383
What VMware product are you using?

For hosted products (Server, Player, Workstation) such a rsync solution is good, while on ESX there are other methods too.

For shorter downtime it's also possible to take a LVM snapshot right after the VM is suspended, then start the VM and backup the snapshot.

Lars
0
 

Author Comment

by:tratti
ID: 24734609
VMware Server
0
 
LVL 18

Expert Comment

by:larstr
ID: 24734635
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 5

Expert Comment

by:giovannicoa
ID: 24734645
Hi,

for ESX you can use VCB, Veem, vRanger, esXpress or Platespin products for the backup purpose.
At the moment Veeam is the best choice for us.

If you use VMware Server or Workstation you can use rsync or whenever you want as a normal files (only verify that your utility can support file greated than 2GB).

Hope this can help you,
Giovanni Coa
0
 

Author Comment

by:tratti
ID: 24734653
what is vmbackup exactly? it makes a copy by rsync?
0
 

Author Comment

by:tratti
ID: 24734751
another useful info : my virtual machine is splitted into 2gb files...
0
 
LVL 18

Expert Comment

by:larstr
ID: 24735062
vmbackup doesn't use rsync, but the effect is the same. vmbackup is open source so you can probably modify it to use rsync if you want. Having the vmdk split in 2GB files is fine.

Lars
0
 

Author Comment

by:tratti
ID: 24736095
but using rsync with inplace is correct?
0
 
LVL 5

Accepted Solution

by:
giovannicoa earned 500 total points
ID: 24736504
Hi,

rsync option "--inplace" presume that:

a) During transfer your destination file is inconsistent
b) If the copy is interrupted your destination file result inconsistent
c) It's optimized for disk bound, not for the network bound
d) It's better for large files with block level changes
e) Without inplace option you need more disk space

My personal opinion is that you need to test :
a) How many time with and without "--inplace" do you need to copy the VMDK
b) Check how many spaces do you need to remove "--inplace"

After that if the difference in terms of time is irrilevant and you don't have disk space issue, you can choose to don't use --inplace because your backup need to be more reliable possible and any inconsistence in the backuped file can be a problem for you.

Hope this can help you,
Giovanni Coa
0
 

Author Closing Comment

by:tratti
ID: 31597823
I've checked and the "--inplace" option is very longer than without it... it takes about 2 hours and without it only 1 hour!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question