Re: [Bacula-users] mark a directory to be excluded from backup

2009-03-04 Thread Thomas


Thomas Manson schrieb:
 Hi,
 
   I wonder if it is possible to mark a directory to be exclude from the
 backup by another mean that the bacula-dir.conf.
 
   Here we have a centralized configuration for what is to be backup,
 while I think a distributed configuration would be more efficient and
 easy to handle (Ok, not in every case, but in my case I don't get why
 the director should know every thing about it's clients file system)
 
   For example, if a directory would contain an empty file
 .bacula_exclude_dir own by a specific user, the file daemon would not
 backup this dir even if inside a directory mention with a File=

this can be easily done by something like:

find /home/thomas/test/ -name .exclude | sed 's/.exclude//'  
/home/thomas/test/excludelist

and then specify

  Exclude   {
  File = \\/home/thomas/test/excludelist
}

in the Fileset.
you can configure the includelist in the same way on the client.

 
   Or a file like the robot.txt that one left for search engines so they
 know what to index and what not.
   If the filedaemon find a file like .bacula_directives, it would follow
 that list of directives for all subdir of the current dir.
 
   Or even a configuration file for the file daemon. It's easier to
 modifiy (with scripts) a conf file on the client, that to automatically
 update the director conf file from the client (quite impossible in fact).
 
   Ok, it's a bit intrusive, but as far as I know bacula, if the only way
 to exclude a directory is to write some complex config in
 bacula-dir.conf, it's very cumbersome !
 
   In my case, on the machine I add very often new websites, each one
 with specific structure with some files to be backup some not.
 
   this would lead to huge config file or huge amount of data backuped
 for nothing...
 
  What do you think about that?  
 
 Thomas.
 
 
 
 
 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 
 
 
 
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
[:O]###[O:]

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mark a directory to be excluded from backup

2009-03-04 Thread Thomas Manson
Hi Thomas,
 Thanks for the tip,
  even If I need to update the director conf file each time I add a website,
it's easy enough to be usable.

Thanks again,
Thomas.



On Wed, Mar 4, 2009 at 14:45, Thomas tho...@ic3s.de wrote:



 Thomas Manson schrieb:
  Hi,
 
I wonder if it is possible to mark a directory to be exclude from the
  backup by another mean that the bacula-dir.conf.
 
Here we have a centralized configuration for what is to be backup,
  while I think a distributed configuration would be more efficient and
  easy to handle (Ok, not in every case, but in my case I don't get why
  the director should know every thing about it's clients file system)
 
For example, if a directory would contain an empty file
  .bacula_exclude_dir own by a specific user, the file daemon would not
  backup this dir even if inside a directory mention with a File=

 this can be easily done by something like:

 find /home/thomas/test/ -name .exclude | sed 's/.exclude//' 
 /home/thomas/test/excludelist

 and then specify

  Exclude   {
  File = \\/home/thomas/test/excludelist
}

 in the Fileset.
 you can configure the includelist in the same way on the client.

 
Or a file like the robot.txt that one left for search engines so they
  know what to index and what not.
If the filedaemon find a file like .bacula_directives, it would follow
  that list of directives for all subdir of the current dir.
 
Or even a configuration file for the file daemon. It's easier to
  modifiy (with scripts) a conf file on the client, that to automatically
  update the director conf file from the client (quite impossible in fact).
 
Ok, it's a bit intrusive, but as far as I know bacula, if the only way
  to exclude a directory is to write some complex config in
  bacula-dir.conf, it's very cumbersome !
 
In my case, on the machine I add very often new websites, each one
  with specific structure with some files to be backup some not.
 
this would lead to huge config file or huge amount of data backuped
  for nothing...
 
   What do you think about that?
 
  Thomas.
 
 
 
  
 
 
 --
  Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
 CA
  -OSBC tackles the biggest issue in open source: Open Sourcing the
 Enterprise
  -Strategies to boost innovation and cut costs with open source
 participation
  -Receive a $600 discount off the registration fee with the source code:
 SFAD
  http://p.sf.net/sfu/XcvMzF8H
 
 
  
 
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 --
 [:O]###[O:]


 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
 CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the
 Enterprise
 -Strategies to boost innovation and cut costs with open source
 participation
 -Receive a $600 discount off the registration fee with the source code:
 SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mark a directory to be excluded from backup

2009-03-04 Thread Thomas Manson
Yes, that sounds good ;)
I'll set a cron job that get the exclude file list on each client with scp
before the backup job.

Thomas.

On Wed, Mar 4, 2009 at 15:40, John Drescher dresche...@gmail.com wrote:

  Hi Thomas,
   Thanks for the tip,
even If I need to update the director conf file each time I add a
 website,
  it's easy enough to be usable.
  Thanks again,
  Thomas.
 
 In this method you should just update the external file. Unless the
 new website is not in the path of the include fileset already.

 John

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mark a directory to be excluded from backup

2009-03-04 Thread Dan Langille
Thomas Manson wrote:
 Hi,
 
   I wonder if it is possible to mark a directory to be exclude from the 
 backup by another mean that the bacula-dir.conf.
 
   Here we have a centralized configuration for what is to be backup, 
 while I think a distributed configuration would be more efficient and 
 easy to handle (Ok, not in every case, but in my case I don't get why 
 the director should know every thing about it's clients file system)
 
   For example, if a directory would contain an empty file 
 .bacula_exclude_dir own by a specific user, the file daemon would not 
 backup this dir even if inside a directory mention with a File=

Well, FWIW, this is implemented, but not released.

See http://www.bacula.org/manuals/en/concepts/concepts/New_Features.html

Look for Exclude Dirs Containing

Now in the SVN version, coming soon to a release near you.

Is this what you're looking for?

-- 
Dan Langille

BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
PGCon  - The PostgreSQL Conference: http://www.pgcon.org/

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mark a directory to be excluded from backup

2009-03-04 Thread Thomas Manson
Yes exactly !
But I'll keep to the version of bacula shipped in ubuntu repo (safer).

Thanks for the info.

Thomas.

On Wed, Mar 4, 2009 at 16:02, Dan Langille d...@langille.org wrote:

 Thomas Manson wrote:

 Hi,

  I wonder if it is possible to mark a directory to be exclude from the
 backup by another mean that the bacula-dir.conf.

  Here we have a centralized configuration for what is to be backup, while
 I think a distributed configuration would be more efficient and easy to
 handle (Ok, not in every case, but in my case I don't get why the director
 should know every thing about it's clients file system)

  For example, if a directory would contain an empty file
 .bacula_exclude_dir own by a specific user, the file daemon would not backup
 this dir even if inside a directory mention with a File=


 Well, FWIW, this is implemented, but not released.

 See http://www.bacula.org/manuals/en/concepts/concepts/New_Features.html

 Look for Exclude Dirs Containing

 Now in the SVN version, coming soon to a release near you.

 Is this what you're looking for?

 --
 Dan Langille

 BSDCan - The Technical BSD Conference : http://www.bsdcan.org/
 PGCon  - The PostgreSQL Conference: http://www.pgcon.org/

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users