Linux: Backup and restore your system!

Get root access:
[cci lang="bash"]sudo su[/cci]

To backup:
[cci lang="bash"]tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys /[/cci]

To restore:
[cci lang="bash"]tar xvpfz backup.tgz -C /[/cci]

Source: http://ubuntuforums.org/showthread.php?t=35087

To backup on an other mount:
[cci lang="bash"]tar cvpzf /mnt/data/backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/mnt –exclude=/sys /[/cci]

Leave a Reply

Creative Commons Attribution-ShareAlike 2.5 Canada
This work by gimpe is licensed under a Creative Commons Attribution-ShareAlike 2.5 Canada.