On 3/23/07, Alan Lord <[EMAIL PROTECTED]> wrote: > ANIRUDH VIJ wrote: > > i followed thre instruction in the lfs book 6.2 and my basic lfs system now > > works well.I want to back it up so that after i mess around and spoil the > > installation,i can still recover the system > > i have enough space on other hard disk partitions to completely back up the > > lfs partition . > > is a > > sudo cp -rv /media/lfs/* /home > > I find using (as root) cp -a $LFS/* $DESTDIR works.
That would work. The -a is important because you want to preserve the attributes of the existing files. You also want to unmount all the filesystems like $LFS/proc so that you don't try to copy them into your archive. You can pass the -x flag to cp so that it will only stay on a single filesystem. > Or the probably better alternative would be to make a tarball of the > whole thing. man tar is your friend there. You can also pass tar through > gzip or bzip2 for compression. Yeah, tar or cpio are much better designed for these tasks. However, `man tar' doesn't exist on LFS out of the box. `tar --help' is pretty helpful. Again, you'd probably want to unmount the child mounts in $LFS, but the following would probably work. tar -C $LFS --one-file-system -cf /backupdir/lfs-backup.tar . You also want to do that operation as root, or you'll lose all the file attributes, etc. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page