Debian Squeeze on Macbook Pro (Part III)

This might be the last part of Debian Squeeze installation story. In this part I'm going to describe about what I did for backup.

At first, to backup the entire debian system, we can use "dd".

The command is like this:

dd if=/dev/sda4 of=/path/to/backup-`date +%s`.img

To restore, boot from some place else (live CD or the other OS) and then run:

dd if=/path/to/backup.img of=/dev/sda4

Here, /dev/sda4 is the '/' partition where debian is installed.


momotaro@debbie:~/Downloads$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda4             9.2G  5.3G  3.5G  61% /
tmpfs                 1.9G     0  1.9G   0% /lib/init/rw
udev                  1.9G  264K  1.9G   1% /dev
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda6             187G   40G  138G  23% /home
/dev/sdb1             466G  423G   43G  91% /media/hd

To backup personal file, I use rsync.

rsync -av /home/momotaro/Pictures/ /media/hd/Pictures
rsync -av /home/momotaro/Music/ /media/hd/Music/iTunes/Music
rsync -av /home/momotaro/Documents/ /media/hd/Documents

The next step would be to run this backup script within a useful scheduled time, like weekly or maybe less.

1 comments: (+add yours?)

Online Backup said...

Can you change the icon for a new added share instead of the plain folder icon.