LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2006, 11:45 PM   #1
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
Best way to backup a whole installation?


I have done a successful LFS6.2 install on my primary disk and now I want to sort of snap-shot it and start over with different disk dimensions etc What is the best way to bundle the entire system safely up into something I can put on a DVD for restoring later?

Can I execute some format of b2zip or tar et al that handles the permissions and (not a directory or regular file) other kinds of system objects that cant be easily handled as normal files.

I am expecting to boot on a live cd, mount /dev/sda3 and then copy everything exactly as is onto some media so that I can be copied back onto an ext3 blank partition and then booted later (assuming grub is properly reinstalled/setup of course)

What do you recommend? LFS is a lot of work and I would like to be able to keep it for future use

Will
 
Old 08-24-2006, 12:11 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Umm well one way is using dd to create a byte-to-byte "image file" of the harddisk, and then copy that off. The problem is, if it's a problem to you, that the image is very big in size..but that will create an exact copy, if you like.

Code:
dd if=/dev/sda3 of=/mnt/bigsafeplace/backup-of-sda3
would do the job afaik.

Of course cpio will do to some extent, it will copy even special files into the cpio archive, that tar, gzip etc. won't.
 
Old 08-24-2006, 02:14 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
I use tar to make a copy of one installation and install it on another computer. Installing it back on the same computer would work equally well of course.

I don't use compression, it slows down the tar a lot.

You even can tar the partition of a live, running machine provided you exclude files like /proc/kcore and mounted file systems.

If you want to save the MBR, use dd and copy the first 446 bytes into a file. (check the exact number in the "learn how to use the dd command" in this forum.)

jlinkels
 
Old 08-24-2006, 07:06 AM   #4
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Original Poster
Rep: Reputation: 30
Thanks guys! dd has worked ok - but the at first glance I couldn't do it because I was dd'ing to a VFAT partition and ran out of file size at 4g! Never mind - *big*safeplace alright!

Cheers,
Will
 
  


Reply


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
Backup FC3 installation using partimage linuxmandrake Fedora 3 07-19-2005 02:43 PM
Backup my installation burning it on a DVD PinRojas Debian 4 06-20-2005 01:05 PM
backup Mandrake installation. pelgrimforever Mandriva 11 08-27-2004 03:17 AM
which conf-files to backup for new installation felicehome Linux - General 1 05-21-2004 06:41 PM
how can I backup my debian installation? fuzzyworm Debian 4 04-10-2004 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration