Hi,

I'm trying to define a FileSet which backups every local filesystems, 
excluding some tmp files and all files at /var/spool/postfix, but I want to 
preserve the entire subdirectory structure in the backup, so I call an 
external command at Client to make a list of excluded files:

FileSet {
  Name = "FILE-DTG-UNIX-generic-full"
  Include {
    Options {
      signature = MD5
    }
    File = "\\|sh -c 'df -l | grep \"^/dev\" | grep -v \".*/tmp\" | awk 
\"{print \\$6}\"'"
  }
  Exclude {
    File = /proc/*
    File = /tmp/*
    File = /var/tmp/*
    File = "\\| find /var/spool -type f -print"
  }
}

It takes a LOT of time to do an estimate command at the Client, with bacula-fd 
eating lots of CPU, but the final result is OK.

If I comment the last exclude doing the find, the estimate command ends 
instantaneously and I can see the difference in the total number of files.

It will be nice to have an option like "file type" for selecting some types of 
files: directories, regular files, links...

Regards,

ivan


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to