From: Andy <an...@be...> - 2005-12-02 16:16:50
|
Andy wrote: > The UIDs and GIDs from the restored directory appear to be out of sync > with those of the original directory. > > Have I done something wrong, or should I be concerned that there is a > problem with the meta-data stored in BackupPC? I am the OP. Having just run a full backup and done some further analysis I am replying to my own message with additional information. Below I include a sample from the XFER log for the most recent backup: create d 700 103/0 4096 var/spool/postfix/active create d 700 103/0 4096 var/spool/postfix/corrupt create d 700 103/0 4096 var/spool/postfix/defer create d 700 103/0 4096 var/spool/postfix/deferred create d 755 0/0 4096 var/spool/postfix/etc create d 700 103/0 4096 var/spool/postfix/flush create d 700 103/0 4096 var/spool/postfix/hold create d 700 103/0 4096 var/spool/postfix/incoming create d 755 0/0 4096 var/spool/postfix/lib create d1730 103/106 4096 var/spool/postfix/maildrop create d 755 103/0 4096 var/spool/postfix/pid create d 700 103/0 4096 var/spool/postfix/private create d2710 103/106 4096 var/spool/postfix/public create d 700 103/0 4096 var/spool/postfix/saved create d 700 103/0 4096 var/spool/postfix/trace create d 755 0/0 4096 var/spool/postfix/usr And a directory listing, this time using ls -lan to show numeric UIDs and GIDs: ~# ls /var/spool/postfix -lan drwx------ 18 103 0 4096 Apr 18 2005 active drwx------ 18 103 0 4096 Jul 25 04:00 bounce drwx------ 2 103 0 4096 Apr 15 2005 corrupt drwx------ 18 103 0 4096 Jun 14 17:14 defer drwx------ 18 103 0 4096 Jun 14 17:14 deferred drwxr-xr-x 2 0 0 4096 Oct 31 17:16 etc drwx------ 9 103 0 4096 Oct 25 15:51 flush drwx------ 2 103 0 4096 Apr 15 2005 hold drwx------ 18 103 0 4096 Dec 2 15:53 incoming drwxr-xr-x 2 0 0 4096 Oct 31 17:16 lib drwx-wx--T 2 103 106 4096 Dec 2 06:36 maildrop drwxr-xr-x 2 103 0 4096 Oct 31 17:17 pid drwx------ 2 103 0 4096 Oct 31 17:16 private drwx--s--- 2 103 106 4096 Oct 31 17:16 public drwx------ 2 103 0 4096 Apr 15 2005 saved drwx------ 2 103 0 4096 Apr 15 2005 trace drwxr-xr-x 3 0 0 4096 Apr 15 2005 usr I see that the UIDs and GIDs recorded in the XFER log match those from the directory listing. Great. I have downloaded and restored the tar archive from the most recent backup, this time using the -p option to preserve permissions: ~# tar xpvf restore.tar Yet when I list the restored directory I still see differing UIDs and GIDs: ~# ls /root/postfix -lan drwx------ 18 105 0 4096 Dec 2 16:01 active drwx------ 18 105 0 4096 Dec 2 16:01 bounce drwx------ 2 105 0 4096 Apr 15 2005 corrupt drwx------ 18 105 0 4096 Dec 2 16:01 defer drwx------ 18 105 0 4096 Dec 2 16:01 deferred drwxr-xr-x 2 0 0 4096 Dec 2 16:01 etc drwx------ 9 105 0 4096 Dec 2 16:01 flush drwx------ 2 105 0 4096 Apr 15 2005 hold drwx------ 18 105 0 4096 Dec 2 16:01 incoming drwxr-xr-x 2 0 0 4096 Dec 2 16:01 lib drwx-wx--T 2 105 107 4096 Dec 2 06:36 maildrop drwxr-xr-x 2 105 0 4096 Dec 2 16:01 pid drwx------ 2 105 0 4096 Oct 31 17:16 private -rw------- 1 0 0 1024 Dec 2 13:54 prng_exch drwx--s--- 2 105 107 4096 Dec 2 16:01 public drwx------ 2 105 0 4096 Apr 15 2005 saved drwx------ 2 105 0 4096 Apr 15 2005 trace drwxr-xr-x 3 0 0 4096 Dec 2 16:01 usr I dont understand why. If this is the result of my own stupidity then please feel free to point it out. Otherwise, does anyone have any suggestions? Thanks, Andy |