LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-21-2003, 06:42 AM   #1
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Rep: Reputation: 15
Backing up


Hi

Using Slackware 8.1

It seems that my root partition has some how been corrupted.

I've managed to get it back ok but there were still a "few inodes that couldn't be fix" (I think that was the problem).

Anyway it works OK at the moment

How would I go about backing up some of the data there?

For example, as well as personal files and mail etc ... what about the actual structure of programs I've installed from source ... like Apache, PHP, MySQL etc ...

All of these are loacted in /usr/local/

Can I just cp the files to another partition?
Will it retain their correct structure so that if I have to format/reinstall I can just copy them back accross?

Should I use the ditto command?

Can you somehow preserve the file permissions?

Is it possible to back these files up to a VFAT partition??

Any help would be greatly appreciated.

Thanks

OSX
 
Old 03-21-2003, 05:21 PM   #2
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Check out the tar command. You can tar and zip the files to some other directory and it will hold the structure and permissions. Tar should do what you want just fine.


There is also some really cool software out there that will do an entire backup of your system on multiple cd's. Check this out:

http://www.microwerks.net/~hugo/

I plan to use this one once I get all my servers in place.

http://www.bacula.org/

But that might be overkill.

Road

Last edited by Road; 03-21-2003 at 05:24 PM.
 
Old 03-21-2003, 07:27 PM   #3
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the reply

I decided to use tar and gzip - keep it simple

Anway, I've got a backup of all the important files so hopefully that should be ok

Since Slack 9.0 is out now I think I'll format my existing ext2 partitions and install that. Just got to decide on a FS to use now

I hear XFS is fast and reliable so I think I'll give that a shot

Cheers

 
Old 03-22-2003, 01:34 AM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 2,073

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
Quote:
Originally posted by osx
I hear XFS is fast and reliable so I think I'll give that a shot
Do you have any idea what caused the corruption? Moving to a journaled filesystem is a great idea if you have unreliable power and you want to minimize the possiblilty of losing data (plus avoiding those long fscks). It's not going to help much if the corruption was caused by a program that went berserk and scribbled on the disk.
 
Old 03-24-2003, 06:29 AM   #5
osx
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware 9.0/Red Hat 9.0
Posts: 22

Original Poster
Rep: Reputation: 15
The logging in syslog wasn't too in depth

Had a check and basically it seems I ran out of memory!
512MB RAM, 512MB Swap

Was running dropline Gnome at the time so I'm a bit suspect of some app in there

Don't know what program caused it but still I had to manually shutdown which "I think" corrupted the hard disk.

Anyway ... I reinstalled Slack after formatting - still using ext2fs, but i haven't installed dropling gnome so we'll see how it goes

I was going to use XFS but couldn't work out what it's "partition type number" (don't know the term - but Linux Swap is 82 I think and Linux ext2 is 83)... anyway never mind.

Thanks for the help

OSX
 
Old 03-24-2003, 02:09 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Quote:
Quoting osx
I was going to use XFS but couldn't work out what it's "partition type number" (don't know the term - but Linux Swap is 82 I think and Linux ext2 is 83)... anyway never mind.
XFS Faq ... but as a general rule all Linux
native filesystems (ext2, ext3, Reiserf, and even xfs)
use type 83 (Linux native).

But I wouldn't use it at the moment, not because
it's a bad FS (actually I think it's awesome!), but
because it's only available as a patch against
2.4.19 kernels and I had quite a few troubles
with that kernel :} and don't have the time to
try to integrate it into 2.4.20 myself.

Cheers,
Tink

Last edited by Tinkster; 03-24-2003 at 02:10 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backing up ChristineCrawford Linux - Newbie 8 12-17-2005 07:21 AM
Backing up /etc. Gag Halfrunt Linux - Newbie 1 12-05-2004 03:40 AM
backing up koyi Linux From Scratch 2 10-09-2004 10:54 AM
backing-up? jamaso Slackware 5 06-16-2004 08:03 AM
backing up coheed Linux - Software 4 01-25-2004 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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