Hi Marc,
I've already tried something similar.

As the backup filesystem is remote (through ssh), before the execution of
the backup, I execute a remote script that list all directory to exclude,
then scp to the Director machine and do the job. (tech detail may be
inaccurate as it's off the top of my head)

but after a check it didn't work (all data were backup, excluded directory
too), and I didn't have time to work on it...

I'll try again tonight as it become urgent... ;o)

But I really need to reset bacula storage, set the save path to the NAS and
enable the recycling feature on the volume.


Thomas.

On Tue, Aug 4, 2009 at 11:02, Marc Schiffbauer <m...@schiffbauer.net> wrote:

>
> Hi Thomas,
>
> there is an exclude feature in previous bacula versions as well. And
> if you are talking about the new "Exclude Dir Containing" feature:
>
> You can achieve the same behavior in 2.x versions of bacula with an
> Exclude setting like this:
>
> FileSet {
>  Name = "MyFileSet"
>  Include {
>    Options {
>      ...
>    }
>    File = ...
>  }
>  Exclude {
>    File = "\\|sh -c 'for D in / /var /home; do find $D -xdev -name
> .BACULA_NO_BACKUP -type f -printf \"%h\\n\"; done | tee
> /root/bacula_excluded_dirs.log'"
>  }
> }
>
> You have to put the relevant filesystems into the list of the for-loop. In
> this case all dirs containing a file ".BACULA_NO_BACKUP" within
> the /, /var or /home filesystem will not be backed up. And you will find a
> list of directories that have been excluded this way in
> /root/bacula_excluded_dirs.log
>
> I am using this mechanism since years and it works very well.
>
> -Marc
>
> * Thomas Manson schrieb am 04.08.09 um 09:58 Uhr:
> > Hi,
> >
> >   I've been using bacula to backup remote hosts through ssh connection.
> >
> >   It works well except that :
> >
> >
> >    - a lot of data is backed up on remote host uselessly (as log file
> ...)
> >    - I need to upgrade to bacula 3.x to have the exclude feature... but
> I'm
> >    running on ubuntu and would like to keep the apt-get update feature
> working
> >    for bacula
> >    - My hardrives are full. While I didn't have a NAS ready, I set the
> >    backup directory to /backup on my primary disks (raid1).
> >    I now have 2.7TB in Raid5 on a nas mounted in /mnt/backup
> >
> >
> > What I would like is :
> >
> >
> >    - upgrade to v3 and backup only what is needed (with the exclude
> feature)
> >    - delete all existing backup in /backup (150GB)
> >    - start backing up on /mnt/backup
> >
> > my filesystem is almost full (96%) ...
> >
> > Thanks for any help ;)
> > Thomas.
>
> --
> 8AAC 5F46 83B4 DB70 8317  3723 296C 6CCA 35A6 4134
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to