Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Backing up "hard drive"
PostPosted: Mon Sep 18, 2006 11:57 am 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
I want to pull down a complete copy of my linode's hard drive image, because I have to temporarily close out my account. But when I get around to getting a linode again, I want to be able to go right back where I was (i.e., not having to remimber and reconfigure everything again).

What's the best solution for this?


Top
   
 Post subject:
PostPosted: Mon Sep 18, 2006 12:58 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
To avoid remembering and reconfiguring, respectively, you could back up the list of installed packages as well as the /etc directory.

And of course the home folder, any email stored on the machine, and so on.


Top
   
 Post subject:
PostPosted: Mon Sep 18, 2006 1:24 pm 
Offline
Junior Member

Joined: Wed Feb 01, 2006 1:24 am
Posts: 40
I was actually thinking of backing up the whole filesystem. I'm trying to figure out the easiest/safest way to do that.

Perferably I'd like to back up to a "compressed image" on my home hard drive.


Top
   
 Post subject:
PostPosted: Mon Sep 18, 2006 1:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
In that case, you could do something like:

Code:
ssh root@yourlinode "tar cvfj - /" > backup.tar.bz2


The tricky part will be restoring. You'll probably need to set up a Debian partition (because it's the smallest), then use that to restore the tarball to your main drive.


Top
   
 Post subject:
PostPosted: Mon Sep 18, 2006 1:34 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Oh, and make sure to use the "-p" flag when you restore, otherwise the permissions will be funky.


Top
   
 Post subject:
PostPosted: Mon Sep 18, 2006 2:05 pm 
Offline
Senior Member

Joined: Thu Sep 23, 2004 8:35 pm
Posts: 73
Location: The Hague, Netherlands
autodmc wrote:
I was actually thinking of backing up the whole filesystem. I'm trying to figure out the easiest/safest way to do that.

Perferably I'd like to back up to a "compressed image" on my home hard drive.


Assuming you've got a Linux box at home / elsewhere able to receive a SSH connection from your Linode, you can try this:

Code:
$ ssh USER@hostXX.linode.com
(login)
$ sudo dump -0uf - /dev/ubda | gzip -2 | \
 ssh USER@HOMEMACHINE dd of=<SOMEDIR>/linode-udba-0.dump.gz


This example uses dump(1), but you can use a different archive tool if you prefer.

HTH,

Cliff

[*] The dump / gzip / ssh / dd pipeline is based on a FreeBSD Handbook example (17-1).


Top
   
 Post subject:
PostPosted: Tue Sep 19, 2006 11:58 am 
Offline
Senior Newbie

Joined: Fri Apr 22, 2005 8:02 pm
Posts: 8
I'd make sure your drive is read only first. Boot from Finnix and tell linode to make your normal drive ubdb. Then run:

dd if=/dev/ubdb | ssh your.pc.ip.addy dd of=/path/to/disk.img

You can add compression and stuff if you want, I'll leave that up to you.


Top
   
 Post subject:
PostPosted: Thu Sep 21, 2006 2:32 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
The Finnix image also has netcat, which I've used before to copy disk images from one node to another.


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


Who is online

Users browsing this forum: No registered users and 3 guests


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