LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2012, 10:42 AM   #1
sunveer
Member
 
Registered: Jul 2012
Posts: 139

Rep: Reputation: Disabled
Backup Entire OS


I have installed linux on a machine. Now I want to take a complete backup of all linux using tar or rsync tool.

Then, I want to create ext4 partitions on another system with parted magic and transfer the backup contents to that new partitions instead of re-installing the complete linux again.

Is it possible?
 
Old 11-17-2012, 12:11 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Quote:
Is it possible?
Possible.

But there is no need to move into ext4 yet, unless maybe you are trying to overcome size limitation or fsck speed The potential loss of data is higher if you are exposed to sudden power outage without power backup due to its delayed allocation mechanism. Unless you are running a mega structure, or that your storage is measured in exabytes I think ext4 is not yet a matter of need.
 
Old 11-17-2012, 04:25 PM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 346

Rep: Reputation: 72
I just wrote about it here.
I have used ext4 the last 2 years and I wouldn't even consider using anything else...
 
Old 11-17-2012, 05:48 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,267

Rep: Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440Reputation: 4440
Quote:
Originally Posted by sunveer View Post
I have installed linux on a machine. Now I want to take a complete backup of all linux using tar or rsync tool.

Then, I want to create ext4 partitions on another system with parted magic and transfer the backup contents to that new partitions instead of re-installing the complete linux again.

Is it possible?
Possible, and pointless.

Use mondoarchive, systemimager, or mkcdrec. Mondoarchive, especially...since you can 'snapshot' a running system, and have an image you can boot from over the network, which will recover the entire system, from partitions on up. Those are just three bare-metal system recovery tools. There are some commercial options as well.
 
Old 11-17-2012, 11:51 PM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Why only tar or rsync? They are for file level backups. If you want to copy a whole file system, including anything in it's boot record, the simplest way is to use dd on the partition's device file (example /dev/sda6) when the file system is not mounted.

To minimise the size of the backup, while the file system is mounted run, for example
Code:
dd if=/dev/zero of=/delete_this_file; rm /delete_this_file
For file systems other than / the /delete_this_file must be replace with a path on the file system. If /var is a file system mount point it could be /var/delete_this_file

That fills all the unused space with zeroes which are easily compressed. Then, with the file system unmounted (for example by booting another Linux), run, for example
Code:
dd if=/dev/sda6 conv=sync,noerror | gzip > /<path to where you want it>/sda6.dd.gz
Change sda6 as required.
 
1 members found this post helpful.
  


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 entire partition strycnine Linux - General 2 01-26-2010 02:09 AM
How to take entire OS Backup of SLES 10 on DVD....??? jumadhiya Linux - Enterprise 1 03-27-2008 07:12 AM
How to backup entire system without shutting down andrewjschmidt Linux - General 6 06-01-2004 07:01 PM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 09:48 AM
Can u backup entire LFS in such way ?? sapilas Linux From Scratch 1 05-02-2002 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration