Backing up "hard drive"
What's the best solution for this?
7 Replies
And of course the home folder, any email stored on the machine, and so on.
Perferably I'd like to back up to a "compressed image" on my home hard drive.
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.
@autodmc:
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:
$ ssh USER@hostXX.linode.com
(login)
$ sudo dump -0uf - /dev/ubda | gzip -2 | \
ssh USER@HOMEMACHINE dd of=<somedir>/linode-udba-0.dump.gz</somedir>
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)
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.