View previous topic :: View next topic |
Author |
Message |
atze n00b
Joined: 14 Jul 2002 Posts: 55
|
Posted: Mon Jul 15, 2002 11:02 am Post subject: Backup Gentoo??? |
|
|
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 |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Mon Jul 15, 2002 11:16 am Post subject: |
|
|
Sure
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 |
|
|
atze n00b
Joined: 14 Jul 2002 Posts: 55
|
Posted: Mon Jul 15, 2002 11:23 am Post subject: |
|
|
Cool, I'll check this.
Ähm one more question: what is XFS??? |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
|
Back to top |
|
|
atze n00b
Joined: 14 Jul 2002 Posts: 55
|
Posted: Mon Jul 15, 2002 11:52 am Post subject: |
|
|
Is it worth updating from ext3 to XFS? |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Mon Jul 15, 2002 2:57 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
atze n00b
Joined: 14 Jul 2002 Posts: 55
|
Posted: Mon Jul 22, 2002 10:56 am Post subject: |
|
|
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 |
|
|
bazik Retired Dev
Joined: 22 Jul 2002 Posts: 277 Location: Behind you.
|
Posted: Mon Jul 22, 2002 12:43 pm Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Mon Jul 22, 2002 1:36 pm Post subject: |
|
|
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 |
|
|
atze n00b
Joined: 14 Jul 2002 Posts: 55
|
Posted: Mon Jul 22, 2002 6:09 pm Post subject: |
|
|
Cool you're all GREAT! Thanks!
Atze |
|
Back to top |
|
|
al3x n00b
Joined: 19 Jun 2002 Posts: 47
|
Posted: Mon Jul 22, 2002 7:42 pm Post subject: Brute copying |
|
|
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 |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jul 22, 2002 7:49 pm Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Mon Jul 22, 2002 7:52 pm Post subject: Re: Brute copying |
|
|
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 |
|
|
maystorm Apprentice
Joined: 02 Jun 2002 Posts: 222 Location: Germany, not far away
|
Posted: Wed Jul 24, 2002 9:45 pm Post subject: |
|
|
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 ). 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 |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Sun Sep 01, 2002 4:33 am Post subject: |
|
|
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 |
|
|
|