Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-25-2011, 06:46 AM   #1
LQ Newbie
Registered: Nov 2008
Location: Ireland
Distribution: CentOS
Posts: 13

Rep: Reputation: 0
xen guest backups

Hi all,

I need to start doing backups of my VM's.

I currently create new VM's by copying an existing partition using dd, I was wondering if I could create a backup like this but instead of dd to a new partition could I dd to a file and ftp this to my backupp location?

To create a vm in my current setup I use:
lvcreate -L 10GB -n systemvol
mkfs -t ext3 /dev/systemvol/
dd if=/dev/systemvol/ of=/dev/systemvol/ conv=notrunc,noerror

So Could I do something like:

dd if=/dev/systemvol/ of=/etc/tmp/myvm.file conv=notrunc,noerror

Any pointers would be most welcome.

Old 07-25-2011, 08:13 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,701

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
Yes, you can dd to a file.
Old 07-25-2011, 08:51 AM   #3
LQ Newbie
Registered: Nov 2008
Location: Ireland
Distribution: CentOS
Posts: 13

Original Poster
Rep: Reputation: 0

I gave that a go just now and got a file, it's size was the same as the source partition so I tried it without the notrunc option and that gave me a file about the size of the data on the partition. Are their any gotchas by excluding the notrunc option when I go to write the file to a partition on another system?



backup, vm, xen

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guest System with Xen harshaabba Linux - Software 3 06-22-2011 03:17 PM
LXer: Xen: How to Convert An Image-Based Guest To An LVM-Based Guest LXer Syndicated Linux News 0 04-19-2009 05:00 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 08:11 AM
Can I use Gnome under Xen Guest OS? SquishyMarbles Linux - Software 1 09-07-2006 09:50 PM
How to run RHEL 4 as guest in Xen(SLES 10 XEN) darshanbv Linux - Software 1 06-26-2006 12:21 PM

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration