LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-18-2007, 05:53 PM   #1
astrocrep
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Backing up a Filesystem... sort of...


What I want to do is this...

Take my whole root fs... the /etc /bin /usr.... all of it, and move it to an archive location...

What I would like to know, is:

1.) Can this be done? And how?
2.) Restoring the files back to the original location.

Let me further clarify a couple of things.

1.) The enviornment (ie pc and file system types) will always be the same.
2.) Before recovering the file systems would be properly formatted.

Basically, the simplist answer would be the best...

Could I just do a "cp -r /* /home/rich/archive"
Well I guess I would need a way for it to skip a folder...

Thanks,
Rich
 
Old 04-18-2007, 07:47 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Yes this can be done BUT....
1. I would use and external partition mounted in /mnt and not /home

2. If you are backing up a system that is in use, you need to exclude /proc /dev and external filesystems like those in the /mnt/ folder.

I use rsync or cp to do that. For example:
Code:
mkdir /mnt/backup
mount /dev/hdb1 /mnt/backup

rsync -xav / /mnt/backup
or
cp -xav / /mnt/backup
You will need to use a livecd to format the partition and restore the system onto it.
 
  


Reply



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
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 06:30 PM
Some sort of kernel panic and a hosed ext3 filesystem :) polarb Linux - Hardware 2 08-11-2006 03:02 PM
Is there a line limit with the sort utility? Trying to sort 130 million lines of text gruffy Linux - General 4 08-10-2006 08:40 PM
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

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

All times are GMT -5. The time now is 09:59 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