Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 20, 2010 2:21 pm 
Offline
Newbie

Joined: Fri Aug 20, 2010 2:13 pm
Posts: 3
Id like to keep some of these backups locally. I'm wondering if its possible to download the backups. Does anyone know the process?


Top
   
 Post subject:
PostPosted: Fri Aug 20, 2010 2:47 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Yes!

Restore the backup to a Linode and then download the files.

-Chris


Top
   
 Post subject: good point
PostPosted: Fri Aug 20, 2010 10:47 pm 
Offline
Newbie

Joined: Fri Aug 20, 2010 2:13 pm
Posts: 3
ok, that makes sense, i guess what i'm really trying to accomplish is to download a bootable backup that i can use for local development. I've tried downloading with DD raw img files, converting the raw img to VDI and loading them into Virtualbox, but for some reason they won't boot up.


Top
   
 Post subject:
PostPosted: Sat Aug 21, 2010 1:34 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Did you try this http://library.linode.com/advanced/migr ... -to-linode just backwards?


Top
   
 Post subject: Re: good point
PostPosted: Sat Aug 21, 2010 5:32 am 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
arttus wrote:
ok, that makes sense, i guess what i'm really trying to accomplish is to download a bootable backup that i can use for local development. I've tried downloading with DD raw img files, converting the raw img to VDI and loading them into Virtualbox, but for some reason they won't boot up.

Are you using one of the Linode kernels? In that case it's quite likely that your image literally doesn't have the data necessary to boot up, since the kernel portion is handled by Xen.

Even if you use pv_grub, I'm not entirely sure that your image will have any sort of MBR, since there's still some integration with grub and Xen in that case, and I don't know how much is still bypassed. But I admit I haven't used it myself yet so could be wrong.

If that were the case, a pv_grub image might be resolvable just by manually installing a normal Grub MBR after converting to VDI. But a non-pv_grub image is certainly going to need a kernel and bootloader added at a minimum.

I also suspect that the hardware virtualization between a Xen and VirtualBox guest instance may be enough to cause some issues that you'd have to work through on first boot.

-- David


Top
   
 Post subject:
PostPosted: Sat Aug 21, 2010 7:53 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Awhile back, I did actually get an image booting under Virtualbox. There are a number of caveats. The best place to start is with finnix, since that gets you all the tools you need to make this happen (assuming you're running Debian/Ubuntu).

First -- and this gets me every time -- you need to create a partition table, with a partition each for root and swap. You can then stuff the Linode image into that partition. Then, edit /etc/fstab to use the correct device names and /etc/network/interfaces for the right network magic. There's probably a couple other things I'm forgetting too.

Installing a kernel isn't too hard. chroot in and install a kernel image (something like apt-get install linux-image-686 grub initramfs-tools), grub-install /dev/sda, update-grub, make sure your /boot/grub/menu.lst looks OK, then reboot.

The procedure is not entirely unlike the post-debootstrap parts of debootstrapping a system: http://www.debian.org/releases/stable/i386/apds03.html

In reality, you're usually better off just replicating the configuration and data onto a fresh installation on Virtualbox or cloning onto a new Linode. That's why I haven't gotten this down to a process yet: it was a pointless waste of time. But it was fun.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group