LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-25-2011, 05:46 AM   #1
owenm
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 root.name.com systemvol
mkfs -t ext3 /dev/systemvol/root.name.com
dd if=/dev/systemvol/root.source.com of=/dev/systemvol/root.name.com conv=notrunc,noerror

So Could I do something like:

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

Any pointers would be most welcome.

Tks,
Owen.
 
Old 07-25-2011, 07:13 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,631

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

Original Poster
Rep: Reputation: 0
Thanks,

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?

Tks,
Owen.
 
  


Reply

Tags
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 02:17 PM
LXer: Xen: How to Convert An Image-Based Guest To An LVM-Based Guest LXer Syndicated Linux News 0 04-19-2009 04:00 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 07:11 AM
Can I use Gnome under Xen Guest OS? SquishyMarbles Linux - Software 1 09-07-2006 08:50 PM
How to run RHEL 4 as guest in Xen(SLES 10 XEN) darshanbv Linux - Software 1 06-26-2006 11:21 AM


All times are GMT -5. The time now is 05:47 PM.

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