Bacula-users

[Bacula-users] FileSet includes files twice

2008-06-02 06:53:38
Subject: [Bacula-users] FileSet includes files twice
From: Stefan Nicolin <bacula AT nicolinux DOT org>
To: Bacula-users AT lists.sourceforge DOT net
Date: Mon, 2 Jun 2008 12:46:09 +0200
Hi,

I have a strange situation with a fileset. I'd like to achieve the  
following:
We have a dedicated Linux server for the developers in house. Each  
developer has its own Linux vServer (http://linux-vserver.org) where  
they can do whatever they want. The vServers reside onunder / 
vservers/. I do backups of some directories inside the vServers (like / 
home and /var/lib) with a FileSet where the "File" directive ist set to:

File = "\\|bash -c \"find /vservers/*/home -maxdepth 0\""
File = "\\|bash -c \"find /vservers/*/var/lib -maxdepth 0\""

Every thing is fine so far. What I wanted to do is to have new dir  
inside every vServer called "bacula". There the developers could link  
files that they would also like to be backed up. This is for files  
outside the directories that I've set up with Bacula. Then I would use  
another "File" directive in my FileSet:

File = "\\|bash -c \"find -L /vservers/*/bacula/* \""

Here find follows the linked directories to extend the full path. This  
would look for /vservers/<developername>/bacula/<linked dirs>. And  
here is my problem. Doing a "estimate listing" of the job I see that  
bacula includes the files twice:

Here is an example:
This is the directory structure on the server:

# pwd
/vservers/www-devel-devel01/bacula
# ls -l
lrwxrwxrwx  1 root root   17 Jun  2 11:14 htdig -> ../var/lib/htdig/

And this is the listing from the estimate command in Bacula:

Connecting to Client d01-devel-fd at d01-devel.rp.seibert-media.net:9102
lrwxrwxrwx   1 root     root            17 2008-06-02 11:14:48  / 
vservers/www-devel-devel01/bacula/htdig -> ../var/lib/htdig/
-rw-r--r--   1 root     root          2048 2008-04-03 01:59:42  / 
vservers/www-devel-devel01/bacula/htdig/db/synonyms.db
-rw-r--r--   1 root     portage    5922816 2008-04-03 01:59:42  / 
vservers/www-devel-devel01/bacula/htdig/db/root2word.db
-rw-r--r--   1 root     portage   11668480 2008-04-03 01:59:43  / 
vservers/www-devel-devel01/bacula/htdig/db/word2root.db
drwxr-xr-x   2 root     root          4096 2008-04-03 03:16:03  / 
vservers/www-devel-devel01/bacula/htdig/db
-rw-r--r--   1 root     root          2048 2008-04-03 01:59:42  / 
vservers/www-devel-devel01/bacula/htdig/db/synonyms.db
-rw-r--r--   1 root     portage    5922816 2008-04-03 01:59:42  / 
vservers/www-devel-devel01/bacula/htdig/db/root2word.db
-rw-r--r--   1 root     portage   11668480 2008-04-03 01:59:43  / 
vservers/www-devel-devel01/bacula/htdig/db/word2root.db
2000 OK estimate files=8 bytes=35,186,688

The files are also written twice in the Bacula volume - so it's not  
just a weird file listing.
This behaviour exhibits only on Linux (Gentoo). I've also tested this  
on FreeBSD 5.x and Mac OS X Leopard without problems.

Here is my entire FileSet:

# Testen
FileSet {
Name = "baculadir test"
Ignore FileSet Changes = yes
Include {
   Options {
     signature = MD5
     onefs = no
     compression = GZIP1
     checkfilechanges = no
   }
   File = "\\|bash -c \"find -L /vservers/*/bacula/* \""
}
}

Anybody else encounterd this? Any bit of information helps :)

Thanks much

Stefan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] FileSet includes files twice, Stefan Nicolin <=