Re: [Bacula-users] need help defining client files for backup...

2007-10-24 Thread Arno Lehmann
Hi,

24.10.2007 04:31,, David Gardner wrote::
 Guys,
 
 If I understand you correctly, the following should be a_piece_ of
 the bacula-dir.conf. I want to understand this but the problem
 still remains, how do I tie the files on WEB1, DB2 and RptEngine
 into the default job?

Short answer: You don't :-)

In the JobDefs, you have the common settings for the jobs referring 
this default setup.

In each job, you overload the settings that change, in your case, the 
FileSet.

So you end up with a common JobDefs resource used by all your jobs, 
and in each job definition, you have a line for the FileSet, the 
Client, and the bootstrap file to write. Of course, other settings 
could be changed, too - for example the schedule, the pools to use, 
and the retention times.

You end up with something like this:

JobDefs {
   Name = DefaultJob
   ... default settings
}

Client {
   Name = 1
   ...
}

Client {
   Name = 2
   ...
}

FileSet {
   Name = F1
   ...
}

FileSet {
   Name = F2
   ...
}

Job {
   Name = J1
   JobDefs = DefaultJob
   Client = 1
   Fileset = F1
   ...
}

Job {
   Name = J2
   JobDefs = DefaultJob
   Client = 2
   FileSet = F2
   ...
}

Does that make more sense?

Arno

 
 JobDefs { Name = DefaultJob Type = Backup Level = Incremental 
 Client = DURANGO-fd FileSet = Full Set Schedule = WeeklyCycle 
 Storage = DAT72 Messages = ConsOnly# no email during
 testing Pool = Default Priority = 10 }
 
 
 
 # Localhost to backup Client { Name = DURANGO-fd Address = DURANGO 
 FDPort = 9102 Catalog = MyCatalog Password = l4...y#
 password for FileDaemon File Retention = 30 days# 30 days 
 Job Retention = 6 months# six months AutoPrune = yes
 # Prune expired Jobs/Files }
 
 # Local files FileSet { Name = Full Set Include { Options {
 signature = MD5 } File = /home/dgardner }
 
 }
 
 
 # # Database Client to backup # Client { Name = DB2-fd Address =
 DB2 FDPort = 9102 Catalog = MyCatalog Password = l4...2
 # password for FileDaemon File Retention = 30 days# 30 days
  Job Retention = 6 months# six months AutoPrune = yes
 # Prune expired Jobs/Files }
 
 # Database files FileSet { Name = Full Set Include { Options {
 Compression=GZIP } File = /var/lib/mysql/airadvice-backup/c* }
 
 }
 
 
 
 # # Web Server Client to backup # Client { Name = WEB1-fd Address =
 WEB1 FDPort = 9102 Catalog = MyCatalog Password = l4...2
 # password for FileDaemon File Retention = 30 days# 30 days
  Job Retention = 6 months# six months AutoPrune = yes
 # Prune expired Jobs/Files }
 
 # Webserver files FileSet { Name = Full Set Include { Options {
 Compression=GZIP } File = /web/sites/* }
 
 }
 
 
 # # Report Engine Client to backup # Client { Name = RptEngine1-fd 
 Address = RptEngine1 FDPort = 9102 Catalog = MyCatalog Password =
 l4...2# password for FileDaemon File Retention = 30
 days# 30 days Job Retention = 6 months# six months 
 AutoPrune = yes# Prune expired Jobs/Files }
 
 # RptEngine files FileSet { Name = Full Set Include { Options {
 Compression=GZIP } File = /usr/local/reports/A* }
 
 } /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ David
 Gardner email: djgardner(at)yahoo.com Yahoo! IM: djgardner AIM:
 dgardner09 Everything is a learning experience, even a mistake.
 
 - Original Message  From: Arno Lehmann [EMAIL PROTECTED] 
 To: bacula-users@lists.sourceforge.net Sent: Tuesday, October 23,
 2007 3:01:24 PM Subject: Re: [Bacula-users] need help defining
 client files for backup...
 
 
 Hi,
 
 23.10.2007 23:57,, David Gardner wrote::
 Hey gang,
 
 I've read through all the docs I can find on the subject but just
  cannot decipher the correct method of describing in a fileset
 which directories on which client machine should be backed up.
 
 Here's the Linux Server:/directories I want backed up where the 
 connections have all been made and I successfully backed up the
 local files:
 {localhost:}/home/* RptEngine1:/usr/local/reports/A*.pdf 
 DB2:/var/lib/mysql/* WEB1:/web/sites/*
 
 Any help would be appreciated.
 
 You define the necessary clients first.
 
 Then you create the filesets you need - there will be at least four
 of them.
 
 /home/, /var/lib/mysql/, and /web/sites/ are easy.
 
 /usr/local/reports/A*.pdf will need wildcards or regexes in an
 options clause.
 
 Nte that backing up the mysql database files while the database
 server is running is useless - you need to shut down the database
 server, or dump the databases you're interested in to a file and
 back up that (or these) files.
 
 Hope that gets you started,
 
 Arno
 
 
 
 
 
 
 __ Do You Yahoo!? 
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com
 
 -
  This SF.net email is sponsored by: Splunk Inc. Still grepping
 through log files to find problems?  Stop. Now Search log

[Bacula-users] need help defining client files for backup...

2007-10-23 Thread David Gardner

Hey gang,

I've read through all the docs I can find on the subject but just
 cannot decipher the correct method of describing in a fileset which
 directories on which client machine should be backed up.

Here's the Linux Server:/directories I want backed up where the
 connections have all been made and I successfully backed up the local files:

{localhost:}/home/*
RptEngine1:/usr/local/reports/A*.pdf
DB2:/var/lib/mysql/*
WEB1:/web/sites/*

Any help would be appreciated. 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
Everything is a learning experience, even a mistake.




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] need help defining client files for backup...

2007-10-23 Thread Arno Lehmann
Hi,

23.10.2007 23:57,, David Gardner wrote::
 Hey gang,
 
 I've read through all the docs I can find on the subject but just
  cannot decipher the correct method of describing in a fileset which
  directories on which client machine should be backed up.
 
 Here's the Linux Server:/directories I want backed up where the
  connections have all been made and I successfully backed up the local files:
 
 {localhost:}/home/*
 RptEngine1:/usr/local/reports/A*.pdf
 DB2:/var/lib/mysql/*
 WEB1:/web/sites/*
 
 Any help would be appreciated. 

You define the necessary clients first.

Then you create the filesets you need - there will be at least four of 
them.

/home/, /var/lib/mysql/, and /web/sites/ are easy.

/usr/local/reports/A*.pdf will need wildcards or regexes in an options 
clause.

Nte that backing up the mysql database files while the database server 
is running is useless - you need to shut down the database server, or 
dump the databases you're interested in to a file and back up that (or 
these) files.

Hope that gets you started,

Arno

 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 David Gardner
 email: djgardner(at)yahoo.com
 Yahoo! IM: djgardner
 AIM: dgardner09 
 Everything is a learning experience, even a mistake.
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] need help defining client files for backup...

2007-10-23 Thread David Gardner
Arno,

Are you suggesting I create multiple fileset (directives) within  
bacula-dir.conf?  If so, how do I identify the fileset with the client?

That is the root of my confusion, I cannot figure out how to correlate a group 
of files/directories with hosts.
 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
Everything is a learning experience, even a mistake.

- Original Message 
From: Arno Lehmann [EMAIL PROTECTED]
To: bacula-users@lists.sourceforge.net
Sent: Tuesday, October 23, 2007 3:01:24 PM
Subject: Re: [Bacula-users] need help defining client files for backup...


Hi,

23.10.2007 23:57,, David Gardner wrote::
 Hey gang,
 
 I've read through all the docs I can find on the subject but just
  cannot decipher the correct method of describing in a fileset which
  directories on which client machine should be backed up.
 
 Here's the Linux Server:/directories I want backed up where the
  connections have all been made and I successfully backed up the
 local files:
 
 {localhost:}/home/*
 RptEngine1:/usr/local/reports/A*.pdf
 DB2:/var/lib/mysql/*
 WEB1:/web/sites/*
 
 Any help would be appreciated. 

You define the necessary clients first.

Then you create the filesets you need - there will be at least four of 
them.

/home/, /var/lib/mysql/, and /web/sites/ are easy.

/usr/local/reports/A*.pdf will need wildcards or regexes in an options 
clause.

Nte that backing up the mysql database files while the database server 
is running is useless - you need to shut down the database server, or 
dump the databases you're interested in to a file and back up that (or 
these) files.

Hope that gets you started,

Arno

 /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 David Gardner
 email: djgardner(at)yahoo.com
 Yahoo! IM: djgardner
 AIM: dgardner09 
 Everything is a learning experience, even a mistake.
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a
 browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] need help defining client files for backup...

2007-10-23 Thread David Gardner
Guys,

If I understand you correctly, the following should be a_piece_ of the 
bacula-dir.conf. I want to understand this but the problem still remains, how 
do I tie the files on WEB1, DB2 and RptEngine into the default job?

JobDefs {
  Name = DefaultJob
  Type = Backup
  Level = Incremental
  Client = DURANGO-fd
  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = DAT72
  Messages = ConsOnly# no email during testing
  Pool = Default
  Priority = 10
}



# Localhost to backup
Client {
  Name = DURANGO-fd
  Address = DURANGO
  FDPort = 9102
  Catalog = MyCatalog
  Password = l4...y# password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes# Prune expired Jobs/Files
}

# Local files
FileSet {
  Name = Full Set
  Include {
Options { signature = MD5 }
File = /home/dgardner
  }

}


#
# Database Client to backup
#
Client {
  Name = DB2-fd
  Address = DB2
  FDPort = 9102
  Catalog = MyCatalog
  Password = l4...2# password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes# Prune expired Jobs/Files
}

# Database files
FileSet {
  Name = Full Set
  Include {
Options { Compression=GZIP }
File = /var/lib/mysql/airadvice-backup/c*
  }

}



#
# Web Server Client to backup
#
Client {
  Name = WEB1-fd
  Address = WEB1
  FDPort = 9102
  Catalog = MyCatalog
  Password = l4...2# password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes# Prune expired Jobs/Files
}

# Webserver files
FileSet {
  Name = Full Set
  Include {
Options { Compression=GZIP }
File = /web/sites/*
  }

}


#
# Report Engine Client to backup
#
Client {
  Name = RptEngine1-fd
  Address = RptEngine1
  FDPort = 9102
  Catalog = MyCatalog
  Password = l4...2# password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes# Prune expired Jobs/Files
}

# RptEngine files
FileSet {
  Name = Full Set
  Include {
Options { Compression=GZIP }
File = /usr/local/reports/A*
  }

}
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
Everything is a learning experience, even a mistake.

- Original Message 
From: Arno Lehmann [EMAIL PROTECTED]
To: bacula-users@lists.sourceforge.net
Sent: Tuesday, October 23, 2007 3:01:24 PM
Subject: Re: [Bacula-users] need help defining client files for backup...


Hi,

23.10.2007 23:57,, David Gardner wrote::
 Hey gang,
 
 I've read through all the docs I can find on the subject but just
  cannot decipher the correct method of describing in a fileset which
  directories on which client machine should be backed up.
 
 Here's the Linux Server:/directories I want backed up where the
  connections have all been made and I successfully backed up the
 local files:
 
 {localhost:}/home/*
 RptEngine1:/usr/local/reports/A*.pdf
 DB2:/var/lib/mysql/*
 WEB1:/web/sites/*
 
 Any help would be appreciated. 

You define the necessary clients first.

Then you create the filesets you need - there will be at least four of 
them.

/home/, /var/lib/mysql/, and /web/sites/ are easy.

/usr/local/reports/A*.pdf will need wildcards or regexes in an options 
clause.

Nte that backing up the mysql database files while the database server 
is running is useless - you need to shut down the database server, or 
dump the databases you're interested in to a file and back up that (or 
these) files.

Hope that gets you started,

Arno






__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users