Bacula-users

[Bacula-users] losing directory permissions and ownership

2009-10-26 04:56:10
Subject: [Bacula-users] losing directory permissions and ownership
From: Avi Rozen <avi.rozen AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 26 Oct 2009 10:52:47 +0200
Hi,

I'm at my wits end here. I'd appreciate any feedback on this.

I have the following directory

/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/bacula-test

with some files in it. I've specifically chowned the directories and
files to different users and groups.

The relevant director configuration is at the bottom of this message.
Note the single File directive pointing to the directory above.

When I restore the files all parent directories except for bacula-test
lose their permissions and owner/group (all are set to 0751/drwxr-x--x
root:root).

I'd like to cherry pick directories to backup and have them restored
with correct ownership and permissions...

What am I doing wrong? Is this the expected behavior?

Please help,
Avi.



Job {
  Enabled = no
  Name = test-backup-job
  Client = machine-cycle-fd
  Type = Backup
  Level = Incremental
  Schedule = "WeeklyCycle"
  Storage = File
  Messages = Standard
  FileSet = test-fileset
  Pool = test-pool
  Full Backup Pool = test-full-pool
  Write Bootstrap = "/mnt/backup/test.bsr"
  Priority = 10
}

Job {
  Name = test-restore-job
  Client = machine-cycle-fd
  FileSet = test-fileset
  Type = Restore
  Storage = File
  Messages = Standard
  Pool = test-pool
  Full Backup Pool = test-full-pool
  Where = /tmp/bacula-restores
}

Pool {
  Name = test-pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 4 months
  LabelFormat = "test-"
  Maximum Volume Bytes = 4294967295
}

Pool {
  Name = test-full-pool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 4 months
  LabelFormat = "test-full-"
  Maximum Volume Bytes = 4294967295
}

FileSet {
  Name = test-fileset
  Include {
    Options {
      signature = SHA1
      compression = GZIP
    }

    File =
/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/bacula-test
  }
}

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users