Act now!! EU citizens must contact the members of the conciliation committee for the European Parliament (list with contact infos and scores to previous votes) and their ministers and EU Council representatives to inform them about the importance of protecting Net neutrality (2 pages note). They must ask them to adopt firm positions to protect innovation and citizens' fundamental rights Net neutrality.

Backup

Abstract

This page shows how to integrate a simple backup shell script to System Rescue CD. This customized version of System Rescue CD boots and executes a backup script. The script detects external disks previously configured and can make copies of partitions.

This web site is not updated anymore.

Some softwares and documents found here may be outdated. Please visit my new web site: http://www.cdsoft.fr/

Certains logiciels et documents sur ce site ne sont pas à jour. Merci de consulter http://www.cdsoft.fr/

Caution!

This software seems to work but I'm not responsible for any loss of data or crash of your hard disk. This software is provided as is, without any support and users use it at their own risks.

Contents

Usage

Backup disk setup

To use a disk as a backup media, just create a backup.cfg file in the root directory of this disk. This file can define several different kinds of backups:

  • device device: backup/restore the master boot record and the partition table of the disk device (e.g. sda)
  • dd device: backup/restore the partition or the entire disk device (e.g. sda1 or sda) using dd. The backup is an exact image of the device and can be mounted.
  • ddz device: backup/restore the partition or the entire disk device (e.g. sda1 or sda) using dd and gzip. The backup is an exact image of the device.
  • partimage partition description: backup/restore the partition partition (e.g. sda1) using partimage. The backup is an exact image of the device.
  • ntfsclone partition description: backup/restore the partition partition (e.g. sda1) using ntfsclone. The backup is an exact image of an NTFS partition and can be mounted.
  • rsync partition description: backup/restore the partition partition (e.g. sda1) using rsync. The backup is not an exact image of the partition but can be used for fast incremental backup.

The script will show a menu to select the items to backup/restore or not. To systematicaly preselect some items, just add the keyword "on" at the end of the corresponding lines.

Exemple:

device    sda
partimage sda1 "Ubuntu"
rsync     sda3 "/home" on

It's also possible to backup several computers on a single external disk. Computers are identified by the MAC address of the network card if any (eth0):

  • id MACAddr root: the following partitions belongs to a specific computer which MAC address is MACAddr and the backup will be stored in the root directory.

Exemple:

# My personal computer
id        11:22:33:44:55:66 home
device    sda
partimage sda1 "Ubuntu"
rsync     sda3 "/home" on

# My professional computer
id        77:88:99:AA:BB:CC work
device    sda
partimage sda1 "System"
ntfsclone sda2 "Documents"

Usage

Just plug the backup media, boot from the CD and follow the instructions.

Installation

It is also possible to install the system on an external disk. One can for instance partition the backup medium: one partition for the system and one for the backup, on the same bootable external hard disk.

We assume here that the computer hosts only one internal disk, named sda. The backup media is sdb. It is necessary to change this to match your system.

  • Plug the backup media

  • Start from the CD

  • Start X interface

  • Insert again the CD when it is ejected

  • Partionning of the backup media

    • Run Gparted (3rd icon on the right) on the backup media (sdb)

      • Create first primary partition (sdb1: 300 Mo formated FAT16)

      • Create second primary partition (sdb2)

        • the whole remaining space
        • format as EXT3 for Linux
        • format as NTFS for Windows (FAT can not contain big files)
    • Run Gparted again to make the first partition bootable

      • Right clic on the first partition (sdb1)
      • Choose "Manage flags"
      • Select "boot"
    • Close Gparted

  • In a terminal run "backup-install sdb1" to copy files to the partition

  • Boot on the backup media

    • Restart the computer, the backup media being connected

    • If the computer doesn't boot on the backup media check in the BIOS that :

      • the boot on USB devices is possible and activated
      • some external USB disks may be recognized as USB ZIP

Goodies

Some useful scripts have been added to this CD:

grub_revival
recreates a GRUB master boot record (MBR).
lilo_revival
recreates a LILO master boot record (MBR).

Download

The sources to build this CD are composed of:

System Rescue CD
the original System Rescue CD (not included in srcd-backup.tgz!)
backup.sh
the backup script to be added to System Rescue CD
backup-install.sh
the installation script to be added to System Rescue CD
build.sh
a script to build the new ISO image
README.txt
Help file included in the CD
grub_revival
a script to recreate a GRUB master boot record (MBR)
lilo_revival
a script to recreate a LILO master boot record (MBR)

This CD starts with a french keyboard. You can easily change this in build.sh to generate your own CD.

Donate

If you find these softwares usefull, you are free to donate something to support their future evolutions. You can use PayPal to donate. No minimal amount (no maximal too ;-).