Backup of LFS

Daniel T. Nevistic dan22 at
Thu Jan 29 08:21:59 PST 2009

// Date: Thu, 29 Jan 2009 11:19:29 +0000
// From: richard.melville at
// Reply-To: LFS Support List <lfs-support at>
// To: lfs-support at
// Subject: Re: Backup of LFS
// > I have a fresh LFS 6.4 installation, all I've done is add 1 user. Is
// > there a preferred way to back it up (and restore)?
// > 
// > Would it be sufficient to just use the liveCD, mount my paritition,
// > and 'cp -ar', or do I need to do something more arcane like 'dd'?
// cp works well for me, but you don't need the "r" option if you are using the "a" option as "a" is the same as using -dpR.  I usually use cp -ax or cp -avx if I want it echoed to the screen -- makes the process much slower though.  Clearly, you don't need to copy /proc and /sys as they are regenerated each time you boot; you could just create the directories.  There are also directories like /mnt and /home where you may want to review the contents first before you copy.  If you are going to copy /boot and you want to boot from the copy make sure that the information in /boot/grub/menu.lst is still relevant to the new installation.

These all sound like good ideas to me.  

At this point you have a really simple system.  What you really need to do 

copy: /bin /lib /usr /etc /boot /var to some sort of medium.

To restore: just create a new filesystem on the partition, and copy the 
correct trees back.

tar cvzf back_up.tgz /bin /lib /usr /etc /boot /var <anything else you 

Or cp -a, or dd, or whateva.


More information about the lfs-support mailing list