[K12OSN] tar to take an image for checkpointing

Robert Moskowitz rgm at htt-consult.com
Tue Sep 5 23:43:30 UTC 2006


Matt Oquist wrote:
>> Date: Thu, 24 Aug 2006 17:19:28 -0400
>> From: "Robert Moskowitz" <rgm at htt-consult.com>
>> Subject: [K12OSN] Got to rebulid -- how to take an image for checkpointing
>>
>> So how can I take a real good snap shot of my drive.  I would want 
>> something like GHOST where I would boot from CD and image to a USB 
>> harddrive or network drive....
>>     
>
> With a (p)OS like Windows(TM), you need a "ghosting" program because
> the system has loads of secret binary data that keep it from working
> if you just copy the filesystem contents of the OS to another system.
> Thankfully, Linux is part of the UNIX tradition and the entire system
> is portable.
>
> 1. To create a complete, compressed, ready-to-roll system backup on a remote system:
> $ cd /
> $ tar czvf - / | ssh user at remotehost "cat > systembackup.tgz"
This hung on /media/cdrom

So I need a -T option with a file listing the desired diretories?

Or is there a way to exclude directories?

doing a ls -ls / produces:

 8 drwxr-xr-x   2 root root  4096 Sep  5 10:45 bin
 2 drwxr-xr-x   4 root root  1024 Sep  5 10:36 boot
 0 drwxr-xr-x   9 root root  5440 Sep  5 11:11 dev
16 drwxr-xr-x  83 root root 12288 Sep  5 11:11 etc
 8 drwxr-xr-x   3 root root  4096 Feb 21  2005 home
 8 drwxr-xr-x   2 root root  4096 Feb 21  2005 initrd
 8 drwxr-xr-x  11 root root  4096 Sep  5 11:06 lib
16 drwx------   2 root root 16384 Aug 25 08:58 lost+found
 8 drwxr-xr-x   4 root root  4096 Sep  5 11:11 media
 8 drwxr-xr-x   2 root root  4096 Aug 13 06:46 misc
 8 drwxr-xr-x   2 root root  4096 Feb 21  2005 mnt
 8 drwxr-xr-x   2 root root  4096 Feb 21  2005 opt
 0 dr-xr-xr-x  94 root root     0 Sep  5 07:09 proc
 8 drwxr-x---  15 root root  4096 Sep  5 11:57 root
16 drwxr-xr-x   2 root root 12288 Sep  5 11:07 sbin
 8 drwxr-xr-x   2 root root  4096 Aug 25 12:59 selinux
 8 drwxr-xr-x   2 root root  4096 Feb 21  2005 srv
 0 drwxr-xr-x   9 root root     0 Sep  5 07:09 sys
 8 drwxr-xr-x   3 root root  4096 Aug 25 13:20 tftpboot
 8 drwxrwxrwt   9 root root  4096 Sep  5 19:30 tmp
 8 drwxr-xr-x  15 root root  4096 Sep  5 10:40 usr
 8 drwxr-xr-x  23 root root  4096 Aug 25 13:20 var





More information about the K12OSN mailing list