Posts: 58
Joined: Aug 2009
Reputation:
0
How do I do a complete backup of my partiton so if I mess something up I can just restore and not have to worry about reconfiguring alsa etc...
Is there something free like symantec ghost which will work?
Posts: 138
Joined: Jun 2009
Reputation:
7
JumJum
Senior Member
Posts: 138
2009-09-29, 22:15
(This post was last modified: 2009-09-29, 22:20 by JumJum.)
You're looking for the dd command you already have.
dd if=/dev/[partition] of=[output file]
Example:
dd if=/dev/sdb2 of=/mnt/usb/backup.bin
To restore:
dd if=/mnt/usb/backup.bin of=/dev/sdb2
Boot from a livecd or another partition both when you backup and when you restore.
Posts: 1,522
Joined: Dec 2008
Reputation:
0
You should also be very careful with dd and read up on its usage.
An improper use of dd can result in some serious dataloss.
Perhaps someone should recommend a gui-based backup solution for new users.
Posts: 58
Joined: Aug 2009
Reputation:
0
Ok somethings not right I did
dd if=/dev/sda1 of=/home/xbmc/backup.bin
Now I have a 1TB drive but only have Ubuntu Mini and XBMC installed so I would guess it should be no bigger than a couple of GB but so far the backup file is 32GB and still going!!!
Posts: 18
Joined: Sep 2009
Reputation:
0
chojin
Junior Member
Posts: 18
You could also use clonezilla live, which you can run from an usb-stick or cdrom. It can send the image to another computer using a samba share, an nfs share, trough ssh, or ...
Another method is running xbmc on a diskless client (pxe boot) and the server where the diskless client resides is configured with LVM so you can easily create a lvm snapshot of the xbmc volume while xbmc is running on the diskless client, and rsync it, or use dar (disk archive, not tar) to backup it to an external disk or so.. This is how I did it.
Posts: 58
Joined: Aug 2009
Reputation:
0
Cheers people, will give clonezilla a go