[K12OSN] Got to rebulid -- how to take an image for checkpointing

Les Mikesell les at futuresource.com
Fri Aug 25 20:57:10 UTC 2006


On Fri, 2006-08-25 at 08:34 -0400, Robert Moskowitz wrote:

> > But, you should learn how to copy your filesystems
> > with tar and and make a new system bootable too. It isn't
> > difficult and it is easier to learn before you need it.
> >   
> Yeah, I really have to work through a TAR howto.  Know a good one?

Tar isn't much of an issue. The tar commands you need are

tar --one-file-system -cvf tarfile.tar  source
to save a filesystem and
tar -pxvf tarfile.tar
to restore it, where
--one-file-system means you need to do each mounted filesystem
separately, -c means create a tar image, -v is verbose -f means
the image file follows, and source should generally be '.' (meaning
current directory after you have cd'd there).  On the restore side
-p means keep the old permissions and again you should cd to the
right place first.

The complicated parts are the many ways you can access the
image and what you have to do to make it work on a new machine. Note
that you wouldn't really create tarfile.tar in the directory you
are copying - it might be a path over an NFS mount or some other
media, or it might be '-' to mean stdout which you have piped
through ssh to a remote cat command. 

-- 
  Les Mikesell
   les at futuresource.com





More information about the K12OSN mailing list