Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Backup Gentoo???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
atze
n00b
n00b


Joined: 14 Jul 2002
Posts: 55

PostPosted: Mon Jul 15, 2002 11:02 am    Post subject: Backup Gentoo??? Reply with quote

Hi,

is there a possibility to Backup the whole system for later installation? You know, if something crashes or if I finally kick Windoze, etc.

(I know, it won't crash ;) )

Can I even backup each partition to copy it later to another HDD? The same system just another HDD with other partitions.

Atze
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Mon Jul 15, 2002 11:16 am    Post subject: Reply with quote

Sure :D
I use Partimage. It's like Norton Ghost, but it supports just about any file-system, and is freeware. www.partimage.org

I did, however, have some troubles getting it to work with XFS partitions.
Back to top
View user's profile Send private message
atze
n00b
n00b


Joined: 14 Jul 2002
Posts: 55

PostPosted: Mon Jul 15, 2002 11:23 am    Post subject: Reply with quote

Cool, I'll check this.

Ähm one more question: what is XFS???
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Mon Jul 15, 2002 11:32 am    Post subject: Reply with quote

atze wrote:
Cool, I'll check this.

Ähm one more question: what is XFS???


1. A filesystem: (like ext2, ext3, reiserfs..)

AlterEgo talks about an XFS partition, so he means the XFS filesystem.
I suggest you read this FAQ: http://oss.sgi.com/projects/xfs/faq.html

2. A font server for X

If you're interested:
http://www.xfree86.org/4.2.0/xfs.1.html
Back to top
View user's profile Send private message
atze
n00b
n00b


Joined: 14 Jul 2002
Posts: 55

PostPosted: Mon Jul 15, 2002 11:52 am    Post subject: Reply with quote

Is it worth updating from ext3 to XFS?
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Mon Jul 15, 2002 2:57 pm    Post subject: Reply with quote

Sorry, I was indeed talking about the XFS filesystem.

Comparing filesystem speeds is very difficult, becauese it depends on what you use your machine mainly for. Mine is a desktop machine, and I tried good old ext2, ext3 XFS and Reiser.

They're all good filesystems, with ext2 being the least secure (no journaling).
XFS "feels" really quick, except when you delete a lot of files: this seems to take forever.
Also, XFS is not part of the 2.4.18 kernel, but it is patched into the Gentoo-sources kernel.
XFS caused troubles for me when I used it in combination with the pre-empt plus low-latency kernel patches. And, as mentioned before, I had trouble backing up XFS partitions using Partimage. I don't know why, but Partimage kept complaining about filesytem errors that were not there according to fsck.

Currently, all my partitions are Reiserfs: quick and problem free. I really don't understand why the Gentoo documentation advises you NOT to use Reiserfs, cause IMHO it's fine :D
Back to top
View user's profile Send private message
atze
n00b
n00b


Joined: 14 Jul 2002
Posts: 55

PostPosted: Mon Jul 22, 2002 10:56 am    Post subject: Reply with quote

That all sounds great, but I just need to copy my Linux from one HDD to another ... can I just make it with "cp"? Partitions already exists and the FileSystem is the same. Only the mountpoints will change ... "/home" and "/var" will get their own partition.
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Mon Jul 22, 2002 12:43 pm    Post subject: Reply with quote

I use the Ghost4Unix bootdisk... I modified it and removed the compression, because I would take too long. I can backup my 15GB Mp3 partition in less than a hour with a 100Mbit LAN.

Url: http://www.feyrer.de/g4u/
_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Mon Jul 22, 2002 1:36 pm    Post subject: Reply with quote

For copying correctly, use:
Code:

cp -ax <path_to_source> <path_to_dest>

"a" option above stands for "archival" mode.

The other option is to use tar, as follows:
Code:

cd <source_dir>
tar cplf - | (cd <dest_dir>; tar xvpf -)


Note that the "l" flag for tar keeps it on a single file system, somthing you want to do typically. If you use tar, you can also exclude that you don't want copied by using the "--exclude" flag.


atze wrote:
That all sounds great, but I just need to copy my Linux from one HDD to another ... can I just make it with "cp"? Partitions already exists and the FileSystem is the same. Only the mountpoints will change ... "/home" and "/var" will get their own partition.
Back to top
View user's profile Send private message
atze
n00b
n00b


Joined: 14 Jul 2002
Posts: 55

PostPosted: Mon Jul 22, 2002 6:09 pm    Post subject: Reply with quote

Cool you're all GREAT! Thanks!

Atze
Back to top
View user's profile Send private message
al3x
n00b
n00b


Joined: 19 Jun 2002
Posts: 47

PostPosted: Mon Jul 22, 2002 7:42 pm    Post subject: Brute copying Reply with quote

I tried a bunch of wacky solutions to move my gentoo parition from one disc to another, but the easiest thing ended up being 'dd'. It basically just writes the raw disk sectors from one target to another. Read the man page and have a go! Nothing could be more straightforward.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jul 22, 2002 7:49 pm    Post subject: Reply with quote

If you use dd, things break if your partition is being accessed heavily, the source and destination partitions are of different types or sizes, and so on. Using dd to back up is a Bad Idea, as it was not designed to do the type of backups that most people want to do.
_________________
I don't believe in witty sigs.


Last edited by delta407 on Mon Jul 22, 2002 7:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Mon Jul 22, 2002 7:52 pm    Post subject: Re: Brute copying Reply with quote

Won't this work only for equal size partitions?
al3x wrote:
I tried a bunch of wacky solutions to move my gentoo parition from one disc to another, but the easiest thing ended up being 'dd'. It basically just writes the raw disk sectors from one target to another. Read the man page and have a go! Nothing could be more straightforward.
Back to top
View user's profile Send private message
maystorm
Apprentice
Apprentice


Joined: 02 Jun 2002
Posts: 222
Location: Germany, not far away

PostPosted: Wed Jul 24, 2002 9:45 pm    Post subject: Reply with quote

AlterEgo wrote:
I use Partimage. It's like Norton Ghost, but it supports just about any file-system, and is freeware.

I second that one. Seems to be a great tool for backup purposes, it does a good amount of compression using gzip or bzip2 (or none :wink:). I myself was pointed towards this tool by other forum members.

P.S.: It just squeezed my 1.2 GB partition into a gzip'ed file of 490 MB size.
_________________
Linux user #216018
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Sun Sep 01, 2002 4:33 am    Post subject: Reply with quote

I've been messing around quite amatuerly with backup schemes within the past few days myself. I came across tars -M and -L switches, along with split and piping to bzip2. although this might seem elementary to alot of people used to tar and backup stuff, alotta people don't know :) Including myself.

Getting thsi 120 gig drive really taought me alot about needing to backup to multiple volumes LOL...

Although -M with the -L feature seems to work great, I wish you could bzip2 it heheh (well I guess you can given they have a switch for a script file to be ran between "tape" switches).

So far, just doing
Code:

tar -cp -M -L $((640*1024)) -F /sbin/cdr-backup.sh --exclude-from ./exempt-dir.lst -f /mnt/backup.tar  /


and my /sbin/cdr-backup.sh file consists of:
Code:

#!/bin/sh
bzip2 -t /mnt/backup/backup.tar
mkisofs -R -o /mnt/backup/backup.iso /mnt/backup/backup.tar
rm -rf /mnt/backup/backup.tar
cdrecord dev=0,0,0 speed=4 -eject -v /mnt/backup/backup.iso

The exempt-dir.lst file consists of one line:
/mnt/*

I don't want it backing up my mnt directory because theres alotta other partitions mounted there that are temporary.

Right now it's VERY sparse, no error correction is done in case the bzip is corrupt, etc. I suck at bash scripting and just need to look at another to do error checking. I'm in the middle of doing the above right now, also.
Theoretically it should just write chunks of 640k tarball in multivolume mode. I'm trying to stay away from mkcdrec because it wants to do too much. I rrun LVM and an scared of losing it to a tool like that lol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum