Re: Backing up system
On 27 Mar 2009 at 12:42, Bill Crawford wrote: From: Bill Crawford Organization: None To: fedora-list@redhat.com Subject:Re: Backing up system Date sent: Fri, 27 Mar 2009 12:42:56 + Copies to: "Michael D. Setzer II" > On Friday 27 March 2009 09:01:30 Michael D. Setzer II wrote: > > > It does work best if you clear unused space before doing an image to reduce > > space since the null filled sectors compress to almost nothing. > > How do you do that? The cd has various scripts and programs on it to help. cleandrive is the simplest script that free space for linux/unix. dd if=/dev/zero of=/0bits bs=20M rm /0bits That script does it, but no feedback on process. cleandrive5 and cleandrive6 do the same but use Dialog or Xdialog to provide a progress bar. The require the appropriate dialog program be installed and the jetcat-mod program copied to the / directory. For fat32 and ntfs partitions blank6.exe can be used to clear free space for Windows. The is a lblank6 linux program that does a similar task from linux on the mounted fat32 or ntfs partition. Additionally, there are other programs on the web that do this. Long ago, I had done a Fedora 3 full install on a 80GB disk, and did an image. Produced a 12GB compressed image file. Then cleared unused space, and redid image. Only a 2.5GB image file. So, the random information from the drive took 9.5GB of space. +--+ Michael D. Setzer II - Computer Science Instructor Guam Community College Computer Center mailto:mi...@kuentos.guam.net mailto:msetze...@gmail.com http://www.guam.net/home/mikes Guam - Where America's Day Begins +--+ http://setiathome.berkeley.edu (Original) Number of Seti Units Returned: 19,471 Processing time: 32 years, 290 days, 12 hours, 58 minutes (Total Hours: 287,489) bo...@home CREDITS SETI 7,566,804.7045 | EINSTEIN 2,416,953.8009 | ROSETTA 838,646.7327 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
Bill Crawford wrote: > On Friday 27 March 2009 09:01:30 Michael D. Setzer II wrote: > >> It does work best if you clear unused space before doing an image to reduce >> space since the null filled sectors compress to almost nothing. > > How do you do that? head -c 1 /dev/zero >100mega will create a file with 100 million zeros. You create as many files as your free space requires, until the disk is almost full. Then you delete them all. The disk blocks will keep their values (zeros) and most of your free space will now be clean. Slow if you have a lot of free space, but the trick works with any kind of filesystem (if it is not compressing or encrypting, that is). Best regards. -- Roberto Ragusamail at robertoragusa.it -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Friday 27 March 2009 09:01:30 Michael D. Setzer II wrote: > It does work best if you clear unused space before doing an image to reduce > space since the null filled sectors compress to almost nothing. How do you do that? -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Fri, Mar 27, 2009 at 5:29 AM, GMS S wrote: > > Hi, > http://www.sysresccd.org/Download > With the SystemRescueCd I backed up the /dev/sda6 partition in /mnt/backup/ > naming "diskimage" > > After backing up operation the file has the automatic extension like > "diskimage.000". > Is this file ok to restore? > If I name it "diskimage.gz" then it is automatically renamed with this > extension "diskimage.gz.000" The name is correct. It always use .000, .001, .002 because the image can be broken into several pieces, in some cases. > > > But here below > http://www.sysresccd.org/Screenshots > the file is name like this: > "diskimage.pimg" > > Do I have to name with the .pimg extension during backup to restore > correctly? > No. > > And how can I restore it? > > You will use the file you created: diskimage.000 (do not forget of typing the extension .000), check the restore box, and point to the partition (its size has to be greater than or equal to the size of the original partition) in the new disk that will receive the backup: http://orion.lcg.ufrj.br/roma/LCG_partimage.html -- Paulo Roma Cavalcanti LCG - UFRJ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
Hope this isn't to Off-Topic... but related info. Been watching this thread, and want to mention the methods that I have used. G4L and G4U can both do disk and partition images. I must point out that I am the current maintainer of the Free G4L. I develop the system on my Fedora machines, but it uses the kernel.org kernels. The program can be booted from the cd, or it can be added to a system by adding options to the grub menu, or even from windows using grub4dos. It is basically using the dd command to copy the sectors, and uses lzop, gzip, bzip2 or no compression on the image. It can backup to an ftp server, or to another disk or partition, or make a clone of a disk. It is not a file level backup, up disk or partition. I use it in my computer lab to backup the 80GB disk with 98, XP, and Fedora 10 in about 50 minutes making a 12GB image file on a 250GB disk on my AMD64 Fedora machine. It does work best if you clear unused space before doing an image to reduce space since the null filled sectors compress to almost nothing. The program is available on sourceforge and freshmeat. +--+ Michael D. Setzer II - Computer Science Instructor Guam Community College Computer Center mailto:mi...@kuentos.guam.net mailto:msetze...@gmail.com http://www.guam.net/home/mikes Guam - Where America's Day Begins +--+ http://setiathome.berkeley.edu (Original) Number of Seti Units Returned: 19,471 Processing time: 32 years, 290 days, 12 hours, 58 minutes (Total Hours: 287,489) bo...@home CREDITS SETI 7,566,804.7045 | EINSTEIN 2,416,953.8009 | ROSETTA 838,646.7327 -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
Hi, http://www.sysresccd.org/Download With the SystemRescueCd I backed up the /dev/sda6 partition in /mnt/backup/ naming "diskimage" After backing up operation the file has the automatic extension like "diskimage.000". Is this file ok to restore? If I name it "diskimage.gz" then it is automatically renamed with this extension "diskimage.gz.000" But here below http://www.sysresccd.org/Screenshots the file is name like this: "diskimage.pimg" Do I have to name with the .pimg extension during backup to restore correctly? And how can I restore it? -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Thu, Mar 26, 2009 at 8:38 AM, GMS S wrote: > > Hi, > With the SystemRescueCd ,typing xinit in the terminal a graphical interface > with the terminal appears. > There typing partimage got the partimage window. > Giving a filename like "backup" the backing up process starts. > After a while it prompts that there is no space left. > > The current directory was like this: [r...@localhost/root]# > > What should I do then? > Where should I save the backup file? > Can anyone give any idea? > > > You have two options: 1) Save the image on another computer, in your LAN, running a partimage-server. 2) Mount a different partition (e.g., /dev/sda5) on the same computer and save the image there. systemrescuecd has an empty directory you can use as a mount point for this purpose. -- Paulo Roma Cavalcanti LCG - UFRJ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
GMS S wrote: > Hi, > Reading this:http://ubuntuforums.org/showthread.php?t=35087 > I ran this command from terminal being root > > > tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found > --exclude=/backup.tgz --exclude=/mnt --exclude=/media --exclude=/sys / I suppose some excludes could have been replaced with --one-file-system > But the last two lines from terminal. > > > /boot/initrd-2.6.27.5-117.fc10.i686.img > tar: Error exit delayed from previous errors Something (not critical) has happened in the middle of the operation. Since you backup a working system, this can easily happen. You have to review all the output of the command if you want to know what was wrong. Save the output to a log, as someone else advised you, and then find it out. -- Roberto Ragusamail at robertoragusa.it -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
Hi, With the SystemRescueCd ,typing xinit in the terminal a graphical interface with the terminal appears. There typing partimage got the partimage window. Giving a filename like "backup" the backing up process starts. After a while it prompts that there is no space left. The current directory was like this: [r...@localhost/root]# What should I do then? Where should I save the backup file? Can anyone give any idea? -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Thu, Mar 26, 2009 at 2:02 AM, wrote: > > promac wrote: > > [ > You can do this way, but ideally your file system should be unmounted (boot > from > a live CD/DVD). > > I, personally, use BackupPC for /home and partimage for the file system (/ > and /boot). > > -- > Paulo Roma Cavalcanti > LCG - UFRJ > ] > > Would someone please tell how to use partimage to backup whole fedora 10 > system in detail? > > rpm -qa | grep partimage > partimage-0.6.7-5.fc10.i386 Please, read: /usr/share/doc/partimage-0.6.7/README.partimage.html > > > I also downloaded systemrescuecd and burned it. > But can't use it to backup whole fedora 10 system(actually I don't know how > to use it) > Booting this cd can't find graphical option. Try "xinit" > fdisk -l > > Disk /dev/sda: 80.0 GB, 8002528 bytes > 255 heads, 63 sectors/track, 9729 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > Disk identifier: 0x29032902 > >Device Boot Start End Blocks Id System > /dev/sda1 * 1191215358108+ c W95 FAT32 (LBA) > /dev/sda21913944960540952+ f W95 Ext'd (LBA) > /dev/sda394509729 2249100 82 Linux swap / > Solaris > /dev/sda51913560929696121b W95 FAT32 > /dev/sda65610828621502971 83 Linux > /dev/sda782879449 9341766 83 Linux > > I am trying to backup /dev/sda6 partition. > Is it necessary to backup the /proc , /sys, /lost+found , /media, /mnt, > directory to be backed up? > > Is it possible to backup /dev/sda6 partition excluding these > directory(/proc , /sys, /lost+found , /media, /mnt,) with partimage or > systemrescuecd? > Partimage will make a copy of the whole partition. You cannot exclude anything. > > If I copy the whole /dev/sda6 partition in a portable hard disk(250GB),then > after reinstalling minimum fedora 10 and copy-paste that /dev/sda6 from the > portable hard disk to the newly installed fedora 10's root (/) directory > ,will it work ? > In fact, you do not need to reinstall. You can use / and /boot (if it is in its own partition) from your backup. Generally, you just need to adapt grub.conf, fstab in some cases and/or run mkinitrd to recreate the initial initrd img. -- Paulo Roma Cavalcanti LCG - UFRJ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
promac wrote: [ You can do this way, but ideally your file system should be unmounted (boot from a live CD/DVD). I, personally, use BackupPC for /home and partimage for the file system (/ and /boot). -- Paulo Roma Cavalcanti LCG - UFRJ ] Would someone please tell how to use partimage to backup whole fedora 10 system in detail? rpm -qa | grep partimage partimage-0.6.7-5.fc10.i386 I also downloaded systemrescuecd and burned it. But can't use it to backup whole fedora 10 system(actually I don't know how to use it) Booting this cd can't find graphical option. fdisk -l Disk /dev/sda: 80.0 GB, 8002528 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x29032902 Device Boot Start End Blocks Id System /dev/sda1 * 1 1912 15358108+ c W95 FAT32 (LBA) /dev/sda2 1913 9449 60540952+ f W95 Ext'd (LBA) /dev/sda3 9450 9729 2249100 82 Linux swap / Solaris /dev/sda5 1913 5609 29696121 b W95 FAT32 /dev/sda6 5610 8286 21502971 83 Linux /dev/sda7 8287 9449 9341766 83 Linux I am trying to backup /dev/sda6 partition. Is it necessary to backup the /proc , /sys, /lost+found , /media, /mnt, directory to be backed up? Is it possible to backup /dev/sda6 partition excluding these directory(/proc , /sys, /lost+found , /media, /mnt,) with partimage or systemrescuecd? If I copy the whole /dev/sda6 partition in a portable hard disk(250GB),then after reinstalling minimum fedora 10 and copy-paste that /dev/sda6 from the portable hard disk to the newly installed fedora 10's root (/) directory ,will it work ? In serious trouble. Someone please tell how to backup easily as I don't have any live cd. df -h /dev/sda6 21G 7.8G 12G 41% / tmpfs 501M 76K 501M 1% /dev/shm /dev/sda5 29G 6.4G 22G 23% /media/disk /dev/sda1 15G 3.2G 12G 22% /media/disk-1 /dev/sda7 8.8G 1.9G 6.6G 22% /media/disk-2 Thanks. -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Sat, Mar 21, 2009 at 9:25 AM, GMS S wrote: > > Hi, > Reading this:http://ubuntuforums.org/showthread.php?t=35087 > I ran this command from terminal being root > > > tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found > --exclude=/backup.tgz --exclude=/mnt --exclude=/media --exclude=/sys / > > You can do this way, but ideally your file system should be unmounted (boot from a live CD/DVD). I, personally, use BackupPC for /home and partimage for the file system (/ and /boot). -- Paulo Roma Cavalcanti LCG - UFRJ -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Re: Backing up system
On Sat, Mar 21, 2009 at 4:25 AM, GMS S wrote: > > Hi, > Reading this:http://ubuntuforums.org/showthread.php?t=35087 > I ran this command from terminal being root > > > tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found > --exclude=/backup.tgz --exclude=/mnt --exclude=/media --exclude=/sys / > > But the last two lines from terminal. > > > /boot/initrd-2.6.27.5-117.fc10.i686.img > tar: Error exit delayed from previous errors > > Why is that for? > What should I do now? The editor of the link you refer to says this: "EDIT2: At the end of the process you might get a message along the lines of 'tar: Error exit delayed from previous errors' or something, but in most cases you can just ignore that." That means that tar found some errors but it continued its operation anyway. Look at the size of the tar file, try to restore a file or two to test it. One way to find out what is going on is to pipe the tar action to a log file and check it. Add to the end of the tar command something like " | tee tar.log", which will create a text filed named tar.log. If you find a troublesome dir, just exclude it and do a test run. Read the tar man page or eSearch the errors you get to learn more. . good luck. ~af -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
Backing up system
Hi, Reading this:http://ubuntuforums.org/showthread.php?t=35087 I ran this command from terminal being root tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/media --exclude=/sys / But the last two lines from terminal. /boot/initrd-2.6.27.5-117.fc10.i686.img tar: Error exit delayed from previous errors Why is that for? What should I do now? -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines