Bacula-users

Re: [Bacula-users] Restoring Fileset from one Computer to Different Computer

2009-06-17 10:17:48
Subject: Re: [Bacula-users] Restoring Fileset from one Computer to Different Computer
From: Industry Standard Computers <sales11 AT iscnetwork DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 17 Jun 2009 09:40:39 -0400
I think this all of them. Butch

===================== server bacula-dir.conf ==========================

Director {                            # define myself

  Name = "Server-dir"

  DIRport = 9101                # where we listen for UA connections

  QueryFile = "/etc/bacula/query.sql"

  WorkingDirectory = "/var/bacula"

  PidDirectory = "/var/run"

  Maximum Concurrent Jobs = 1

  Password = "bacula"

  Messages = Daemon

  FDConnectTimeout = 5min

  SDConnectTimeout = 5min

}

JobDefs {

  Name = "DefaultJob"

  Type = Backup

  Level = Incremental

  Client = "Server-fd"

  FileSet = "Home"

  Storage = File

  Messages = Standard

  Pool = "Default"

  Priority = 10

}

#

# Define the main nightly save backup job

#   By default, this job will back up to disk in /tmp

Job {

  Name = "BackupHome"

  Type = "Backup"

  Level = "Full"

  Client = "Server-fd"

  FileSet = "Home"

  Storage = "File"

  Pool = "Default"

  Priority = "10"

  Messages = Standard

  WriteBootstrap = "/var/bacula/Server-fd.bsr"

}

# Backup the catalog database (after the nightly save)

# Standard Restore template, to be changed by Console program

FileSet {

  Name = "Catalog"

  # DO NOT REMOVE - This is a database fileset

  Include {

    Options {

      Signature = MD5

    }

    File = "/var/bacula/Catalog.sql"

  }

}

FileSet {

  Name = "Config"

  Include {

    Options {

      Signature = MD5

    }

    # cc-apt

    File = "/etc/apt/apt.conf"

    File = "/etc/apt/vendors.list"

    File = "/etc/apt/sources.list"

    File = "/etc/apt/rpmpriorities"

    # cc-bandwidth

    File = "/etc/sysconfig/cbq/*"

    # cc-bpalogin

    File = "/etc/bpalogin.conf"

    # cc-cups

    File = "/etc/cups/*conf"

    # cc-dansguardian FIXME

    File = "/etc/dansguardian/dansguardian.conf"

    File = "/etc/dansguardian/*list"

    # cc-dhcp

    File = "/etc/dhcpd.conf"

    # cc-dnsmasq

    File = "/etc/dnsmasq.conf"

    # cc-fetchmail

    File = "/etc/fetchmail"

    # cc-firewall

    File = "/etc/firewall"

    File = "/etc/rc.d/rc.firewall.local"

    # cc-hosts

    File = "/etc/hosts"

    # cc-httpd

    File = "/etc/httpd/conf.d/*"

    File = "/etc/httpd/conf/httpd.conf"

    # cc-imap

    File = "/etc/xinetd.d/imap"

    File = "/etc/xinetd.d/imaps"

    File = "/etc/xinetd.d/ipop2"

    File = "/etc/xinetd.d/ipop3"

    File = "/etc/xinetd.d/pop3s"

    # cc-ipsec

    File = "/etc/ipsec.managed"

    File = "/etc/ipsec.*secrets"

    File = "/etc/ipsec.*conf"

    # cc-pop-before-smtp

    File = "/etc/pop-before-smtp-conf.pl"

    # cc-postfix

    File = "/etc/postfix/*"

    # cc-pptpd and cc-pppoe

    File = "/etc/pptpd.conf"

    File = "/etc/ppp/*secrets"

    File = "/etc/ppp/options.pptpd"

    # cc-proftpd

    File = "/etc/proftpd.conf"

    # cc-samba

    File = "/etc/samba/smb.conf"

    File = "/etc/samba/smbpasswd"

    File = "/etc/samba/smbusers"

    # cc-setup

    File = "/etc/crontab"

    File = "/etc/hosts"

    File = "/etc/localtime"

    File = "/etc/localtime.info"

    File = "/etc/sysconfig/i18n"

    File = "/etc/sysconfig/keyboard"

    File = "/etc/sysconfig/network"

    File = "/etc/sysconfig/network-scripts/route-*"

    File = "/etc/sysconfig/network-scripts/ifcfg-eth*"

    File = "/etc/sysconfig/network-scripts/ifcfg-ppp*"

    File = "/etc/resolv.conf"

    File = "/etc/system/*"

    # cc-snort

    File = "/etc/snort.conf"

    File = "/etc/snortsam.conf"

    # cc-sophos

    File = "/usr/local/sophos/mmsmtp.cfg"

    # cc-spamassassin and cc-spamassassin-filter

    File = "/etc/mail/spamassassin/cc-extra.cf"

    File = "/etc/mail/spamassassin/local.cf"

    # cc-squid

    File = "/etc/squid.conf"

    File = "/etc/squil/errors"

    # cc-squirrelmail

    File = "/etc/squirrelmail/config.php"

    # cc-syswatch

    File = "/etc/syswatch"

    # cc-wireless

    File = "/etc/sysconfig/pcmcia"

  }

}

# List of files to be backed up

FileSet {

 Name = "Home"

  Include {

    Options {

      signature = MD5

    }

#

#  Put your list of files here, preceded by 'File =', one per line

#    or include an external list with:

#

#    File = <file-name

#

#  Note: / backs up everything on the root partition.

#    if you have other partitons such as /usr or /home

#    you will probably want to add them too.

#

#  By default this is defined to point to the Bacula build

#    directory to give a reasonable FileSet to backup to

#    disk storage during initial testing.

#

    File = "/home"

  }

#

# If you backup the root directory, the following two excluded

#   files can be useful

#

  Exclude {

    File = "/proc"

    File = "/tmp"

    File = "/.autofsck"

  }

}

#

# When to do the backups, full backup on first sunday of the month,

#  differential (i.e. incremental since full) every other sunday,

#  and incremental backups other days

Schedule {

  Name = "WeeklyCycle"

  Run = Full 1st sun at 01:05

  Run = Differential 2nd-5th sun at 01:05

}

# This schedule does the catalog.

Schedule {

  Name = "DailyCycle"

  Run = Full daily at 1:10

}

# This is the backup of the catalog

# Client (File Services) to backup

Client {

  Name = "Server-fd"

  Address = "192.168.0.151"  #eth0 address eth1 is 192.168.1.2

  FDPort = 9102

  Catalog = MyCatalog

  Password = "bacula"

  File Retention = 30 days            # 30 days

  Job Retention = 6 months            # six months

  AutoPrune = "yes" # Prune expired Jobs/Files

  FileRetention = 30 days

  JobRetention = 6 months

}

# Definiton of file storage device

Storage {

  # Do not use "localhost" here

  Name = File

  Address = "192.168.1.2"

  SDPort = 9103

  Password = "bacula"

  Device = "File"

  MediaType = "File"

}

# Definition of DDS tape storage device

#Storage {

#  Name = DDS-4

#  Do not use "localhost" here

#  Address = localhost                # N.B. Use a fully qualified name here

#  SDPort = 9103

#  Password = "/45HEEsS5XyTVRe6GAuetOrG3g6TLFaRhF/i5B4sizWD"          # 
password for Storage daemon

#  Device = DDS-4                      # must be same as Device in Storage 
daemon

#  Media Type = DDS-4                  # must be same as MediaType in Storage 
daemon

#}

# Definition of 8mm tape storage device

#Storage {

#  Name = "8mmDrive"

#  Do not use "localhost" here

#  Address =  localhost               # N.B. Use a fully qualified name here

#  SDPort = 9103

#  Password = "/45HEEsS5XyTVRe6GAuetOrG3g6TLFaRhF/i5B4sizWD"

#  Device = "Exabyte 8mm"

#  MediaType = "8mm"

#}

# Generic catalog service

Catalog {

  Name = MyCatalog

  dbname =  bacula

  dbport = 3307

  dbsocket = "/opt/bacula/var/lib/mysql/mysql.sock"

  user = bacula

  password = ""

}

# Reasonable message delivery -- send most everything to email address

#  and to the console

Messages {

#

# NOTE! If you send to two email or more email addresses, you will need

#  to replace the %r in the from field (-f part) with a single valid

#  email address in both the mailcommand and the operatorcommand.

#

#

# WARNING! the following will create a file that you must cycle from

#          time to time as it will grow indefinitely. However, it will

#          also keep all your messages if they scroll off the console.

#

  Name = Standard

  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: 
%t %e of %c %l\" %r"

  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s 
\"Bacula: Intervention needed for %j\" %r"

  mail = "sales11 AT iscnetwork DOT com" = all, !skipped

  operator = "sales11 AT iscnetwork DOT com" = mount

  console = all, !skipped, !saved

  append = "/var/log/bacula" = all, !skipped

}

#

# Message delivery for daemon messages (no job).

Messages {

  Name = Daemon

  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula 
daemon message\" %r"

  mail = "root@localhost" = all, !skipped

  console = all, !skipped, !saved

  append = "/var/log/bacula" = all, !skipped

}

# Default pool definition

#

# Restricted console used by tray-monitor to get the status of the director

#

Console {

  Name = Server-mon

  Password = "bacula"

  CommandACL = status, .status

}

Job {

  Name = "BackupCatalog"

  Type = "Backup"

  Level = "Full"

  Client = "Server-fd"

  FileSet = "Catalog"

  Storage = "File"

  Messages = "Standard"

  Pool = "Default"

  Priority = "10"

  ClientRunBeforeJob = "/usr/bacula/backup_script-Catalog.sh"

  ClientRunAfterJob = "rm -f /var/bacula/BackupCatalog.sql"

  WriteBootstrap = "/var/bacula/Server.bsr"

  RunAfterJob = "/usr/bacula/pcnl_send_bsr /var/bacula/Server.bsr 
\'BackupCatalog\'"

}

Pool {

  Name = "Default"

  PoolType = "Backup"

  Recycle = "yes"

  AutoPrune = "yes"

  VolumeRetention = 3 days

  LabelFormat = "DefaultVolume-"

}

Job {

  Name = "Restore"

  Type = "Restore"

  Client = "Server-fd"

  FileSet = "Catalog"

  Storage = "File"

  Messages = "Standard"

  Pool = "Default"

}

Pool {

  Name = "Basic"

  PoolType = "Backup"

  Recycle = "no"

  AutoPrune = "no"

  VolumeRetention = 1 years

  Maximum Volume Bytes = 2147483500

  Maximum Volume Jobs = 1

  Volume Use Duration = 1d

  LabelFormat = "${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${NumVols}"

}

Client {

  Name = "xpcomp-fd"

  Address = "192.168.1.185"

  FDport = 9102

  Catalog = "MyCatalog"

  Password = "bacula"

  FileRetention = 30 days

  JobRetention = 6 months

  AutoPrune = "yes"

}

FileSet {

  Name = "xpcomp-fd-Windows-Bare"

  Enable VSS = yes

  Include {

    Options {

      Signature = MD5

      IgnoreCase = Yes

      Compression = GZIP5

    }

    File = "C:/Documents and Settings/ISC-Customer/My Documents/"

    File = "C:/Documents and Settings/ISC-Customer/Application 
Data/Microsoft/Address Book/"

    File = "C:/Documents and Settings/ISC-Customer/Application 
Data/Mozilla/Firefox/Profiles/"

    File = "C:/Documents and Settings/ISC-Customer/Application 
Data/Thunderbird/"

    File = "C:/Documents and Settings/ISC-Customer/Application 
Data/Mozilla/Profiles/"

    File = "C:/Documents and Settings/ISC-Customer/Desktop/"

    File = "C:/Documents and Settings/ISC-Customer/Favorites/"

    File = "C:/Documents and Settings/ISC-Customer/Local Settings/Application 
Data/Identities/"

    File = "C:/Documents and Settings/ISC Customer/Application 
Data/Microsoft/Outlook/"

    File = "C:/Documents and Settings/ISC Customer/Local Settings/Application 
Data/Microsoft/Outlook/"

  }

}

Job {

  Name = "xpcomp-fdFile"

  Type = "Backup"

  Level = "Full"

  Client = "xpcomp-fd"

  FileSet = "xpcomp-fd-Windows-Bare"

  Storage = "File"

  Messages = "Standard"

  Pool = "Basic"

  Priority = "10"

}

===================== end bacula-dir.conf ===========================
===================== tnserver (w2k3server) computer 
===============================
#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 2.0.2 (01/28/07) -- Windows MVS
#
# There is not much to change here except perhaps the
# File daemon Name
#

#
# "Global" File daemon configuration specifications
#
FileDaemon {                            # this is me
  Name = tnserver-fd
  FDport = 9102                # where we listen for the director
  WorkingDirectory = "D:\\Documents and Settings\\All Users\\Application 
Data\\Bacula\\Work"
  Pid Directory = "D:\\Documents and Settings\\All Users\\Application 
Data\\Bacula\\Work"
  Maximum Concurrent Jobs = 2
}

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = tnserver-fd
  Password = "bacula"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = tnserver-mon
  Password = "monitor"
  Monitor = yes
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = tnserver-fd = all, !skipped, !restored
}
================================== end tnserver (w2k3server) bacula-fd.conf 
========================
================================= xpcomp bacula-fd.conf 
=================================
#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 2.0.2 (01/28/07) -- Windows MVS
#
# There is not much to change here except perhaps the
# File daemon Name
#

#
# "Global" File daemon configuration specifications
#
FileDaemon {                            # this is me
  Name = dellxppro-fd
  FDport = 9102                # where we listen for the director
  WorkingDirectory = "C:\\Documents and Settings\\All Users\\Application 
Data\\Bacula\\Work"
  Pid Directory = "C:\\Documents and Settings\\All Users\\Application 
Data\\Bacula\\Work"
  Maximum Concurrent Jobs = 5
}

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = Server-dir
  Password = "bacula"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = xpcomp-fd
  Password = "monitor"
  Monitor = yes
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = Server-dir = all, !skipped, !restored
}

=================================  end xpcomp bacula-fd.conf  
=============================

=================================  server bacula-fd.conf 
==================================
#
# Default  Bacula File Daemon Configuration file
#
#  For Bacula release 1.36.1 (24 November 2004) -- redhat (Tettnang)
#
# There is not much to change here except perhaps the
# File daemon Name to
#

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = "Server-dir"
  Password = "bacula"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
#Director {
#  Name = Server-mon
#  Password = "bacula"
#  Monitor = yes
#}

#
# "Global" File daemon configuration specifications
#
FileDaemon {                          # this is me
  Name = "Server-fd"
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /var/bacula
  Pid Directory = /var/run
  Maximum Concurrent Jobs = 20
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = "Server-dir" = all, !skipped
}
============================= end server bacula-fd.conf 
============================


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users