bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] taring root file system


From: Alexander Fedorov
Subject: [Bug-tar] taring root file system
Date: Mon, 29 May 2006 16:39:13 +1000

Hi all,

 

I am backing up root file system on address@hidden box 2.7 and I found strange behavior of tar that I cannot explain.

 

address@hidden uname –a

Linux asterisk1.local 2.6.9-34.ELsmp #1 SMP Wed Mar 8 00:27:03 CST 2006 i686 i686 i386 GNU/Linux

 

And my root file system look like that:

 

 

address@hidden ls –la  /

drwxr-xr-x   24 root root     4096 May 22 08:57 .

drwxr-xr-x   24 root root     4096 May 22 08:57 ..

-rw-------    1 root root       13 May 29 04:02 .asterisk_history

-rw-r--r--    1 root root        0 May 22 08:57 .autofsck

drwxr-xr-x    2 root root     4096 Apr 18 18:02 bin

drwxr-xr-x    4 root root     1024 Apr 18 17:00 boot

drwxr-xr-x    8 root root     5360 May 22 08:57 dev

drwxr-xr-x   64 root root     4096 May 29 10:32 etc

drwxr-xr-x    5 root root     4096 May  4 15:00 home

drwxr-xr-x    2 root root     4096 Feb 22  2005 initrd

drwxr-xr-x   11 root root     4096 May 26 04:02 lib

drwx------    2 root root    16384 Apr 11 20:35 lost+found

drwxr-xr-x    4 root root     4096 May 22 08:57 media

drwxr-xr-x    2 root root     4096 Jan  2 06:21 misc

drwxr-xr-x    2 root root     4096 Feb 22  2005 mnt

drwxr-xr-x    3 root root     4096 May 25 13:39 opt

dr-xr-xr-x  134 root root        0 May 22 18:57 proc

drwxr-x---    4 root root     4096 May 25 15:20 root

drwxr-xr-x    2 root root    12288 May  5 04:02 sbin

drwxr-xr-x    2 root root     4096 Apr 12 00:36 selinux

drwxr-xr-x    2 root root     4096 Feb 22  2005 srv

drwxr-xr-x    9 root root        0 May 22 18:57 sys

drwxrwxrwx    3 root root     4096 Feb 19 07:42 tftpboot

drwxrwxrwt    4 root root     4096 May 29 15:41 tmp

drwxr-xr-x   16 root root     4096 May  2 17:01 usr

-rw-r--r--    1 root root 11509760 Apr 20 10:35 v

drwxr-xr-x   24 root root     4096 May  2 14:32 var

 

 

I am taring my system when it is up and running with this command:

 

#tar -c --ignore-failed-read -f /var/backup/system/sys-backup.tar.gz -z /

 

My tar version is:

#/usr/local/bin/tar –version

tar (GNU tar) 1.15

 

But when I am trying to extract files to some temp directory on the same machine or if I copy backup file on another machine I can see that not all the folders archived.

That is what I got:

#ls –la /var/backup/temp

drwx------   2 root root       4096 Apr 11 20:35 lost+found

drwxr-xr-x   2 root root       4096 Jan  2 06:21 misc

drwxr-xr-x   2 root root       4096 Feb 22  2005 mnt

drwxr-xr-x   3 root root       4096 May 25 13:39 opt

drwxr-xr-x   2 root root       4096 Apr 12 00:36 selinux

drwxr-xr-x   3 root root       4096 May 22 18:57 sys

drwxrwxrwt   4 root root       4096 May 29 11:08 tmp

drwxr-xr-x  16 root root       4096 May  2 17:01 usr

-rw-r--r--   1 root root   11509760 Apr 20 10:35 v

 

I cannot understand why tar does not whant to backup the rest forlders in root filesystem, is it bug? Or may be somebody can help me with any ideas.  

 

On another system wich is gentoo everething is just fine.

 

What could prevent tar to backup the rest folders in root partition on address@hidden

 

Best regards,

Alex.

  

 

 

 

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]