PDA

View Full Version : [ubuntu] terminal command to backup restore



samkct
January 24th, 2012, 12:47 PM
Hi;

I wish to know if there a Terminal command to backup the entire filesystem to an external media or n/w drive. and restore the same to a new ubuntu machine without crashing the same. :)

Regards
SD

Lars Noodén
January 24th, 2012, 01:01 PM
Probably the most useful tool in that area is rsync (http://manpages.ubuntu.com/manpages/oneiric/en/man1/rsync.1.html).

https://help.ubuntu.com/community/rsync

It's at its best when updating a backup copy because it only transfers the changes not the whole file again and again.

samkct
January 30th, 2012, 07:27 AM
Hi;

I wish to know if there a Terminal command to backup the entire filesystem to an external media or n/w drive. and restore the same to a new ubuntu machine without crashing the same. :)

Regards
SD
Will this help the purpose of entire system backup? rather than the data folder. My intension is to backup the entire linux partition.

Lars Noodén
January 30th, 2012, 09:20 AM
rsync will do that, just be sure to exclude /dev, /proc and /sys