First I would like to thank the development team for writing such an
excellent product; I have been using bacula on my home network for quite
some time and have very little issues with its functionality.

I apologize if this has already been answered, and if so I would
appreciate a pointer to the list item; my question is this:

Is it possible with 2.0.2 or 2.0.3 to have a single backup/migration job
start on one tape device and end on another?  If so, what modifications
to the configuration attached below are necessary?

Thanks.

-----
DIR.conf:
-----
Director {
  Name = server-dir
  DIRport = 9101
  QueryFile = "/usr/libexec/bacula/query.sql"
  WorkingDirectory = "/var/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 16
  Password = "[password]"
  Messages = Daemon
}

JobDefs {
  Name = "StandardBackup"
  Type = Backup
  Level = Incremental
  Messages = Standard
  Pool = HD
  Rerun Failed Levels = yes
  Spool Data = no
  Spool Attributes = no
  Prefer Mounted Volumes = yes
}

JobDefs {
  Name = "SemiYearlyDVD"
  Type = Backup
  Level = Full
  Schedule = "SemiYearly"
  Messages = Standard
  Pool = DVD
  Write Part After Job = yes
  # RunBeforeJob = "/var/lib/bacula/prepare_DVDspool /var/bacula/quarterly 
4700000"
  # RunAfterJob = "/var/lib/bacula/inventorize_volumes %v"
}

JobDefs {
  Name = "StandardRestore"
  Type = Restore
  Messages = Standard
  Pool = DDS
}

Job {
  Name = "ServerBackup"
  JobDefs = "StandardBackup"
  FileSet = "Server"
  Schedule = "Standard"
  Client = server-fd
  Priority = 10
  Write Bootstrap = "/var/bacula/ServerBackup.bsr"
}

Job {
  Name = "BackupCatalog"
  Type = Backup
  Messages = Standard
  Pool = DDS
  Rerun Failed Levels = yes
  Spool Data = no
  Spool Attributes = no
  Prefer Mounted Volumes = yes
  Level = Full
  Client = server-fd
  FileSet = "Catalog"
  Schedule = "DailyAfterBackup"
  RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup [db] [user] 
[password]"
  RunAfterJob  = "/usr/libexec/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
  Priority = 90
}

Job {
  Name = "ServerRestore-DVD"
  Type = Restore
  Client = server-fd
  FileSet = "Server"
  Pool = DVD
  Messages = Standard
  Where = /tmp/bacula-restores
  Bootstrap = "/var/bacula/Server-All-DVD.bsr"
}

Job {
  Name = "ServerRestore-DDS"
  JobDefs = "StandardRestore"
  Client = server-fd
  FileSet = "Server"
  Where = /tmp/bacula-restores
  Bootstrap = "/var/bacula/ServerBackup.bsr"
}

Job {
  Name = "ClientBackup"
  JobDefs = "StandardBackup"
  Write Bootstrap = "/var/bacula/ClientBackup.bsr"
  Client = client-fd
  Schedule = "Client"
  FileSet = "C"
  Priority = 60
  Client Run Before Job = "C:/WINDOWS/SYSTEM32/NTBACKUP.EXE backup systemstate 
/F c:\\systemstate.bkf"
}

Job {
  Name = "ClientRestore"
  JobDefs = "StandardRestore"
  Client = client-fd
  FileSet = "C"
  Where = C:/temp
  Bootstrap = "/var/bacula/ClientBackup.bsr"
}

Job {
  Name = "ServerMigration"
  Type = Migrate
  Level = Full
  Client = server-fd
  FileSet = "Server"
  Messages = "Standard"
  Schedule = "Standard"
  Pool = HD
  Priority = 0
  Maximum Concurrent Jobs = 8
#  Selection Type = PoolOccupancy (broken, refers to volids as jobids oops)
  Selection Type = SQLQuery
  Selection Pattern = "SELECT DISTINCT(JobId) FROM Job,(SELECT SUM(VolBytes) AS 
sum FROM Media WHERE MediaType='File' AND VolStatus!='Purged') AS temp WHERE 
temp.sum>53687091200 AND Job.Type='B' AND Job.JobBytes>0 AND Job.JobStatus='T' 
AND Job.PoolId=5;"
#  Selection Pattern = "CALL watermark();"
}

FileSet {
  Name = "Server"
  Include {
    Options {
      signature = MD5
    }
    File = /
    File = /var
    File = /home
    File = /download
  }
  Exclude {
    File = /proc
    File = /.journal
    File = /.fsck
  }
}

FileSet {
  Name = "C"                                                                    
                                                     Enable VSS = yes
  Include {                                                                     
                                                       Options {                
                                                                                
                            signature = MD5
    }                                                                           
                                                       File = "C:/"
  }
  Exclude {
    File = "pagefile.sys"
  }
}

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /var/bacula/bacula.sql
  }
}

Schedule {
  Name = "Standard"
  Run = Full 1st sat at 03:30
  Run = Differential 2nd-5th sat at 03:30
  Run = Incremental sun-fri at 03:30
}

Schedule {
  Name = "Client"
  Run = Full 3rd sat at 03:30
  Run = Differential 1st-2nd sat at 03:30
  Run = Differential 4th-5th sat at 03:30
  Run = Incremental sun-fri at 03:30
}

Client {
  Name = server-fd
  Address = server
  FDPort = 9102
  Catalog = MyCatalog
  Password = "[password]"
  File Retention = 1 month
  Job Retention = 1 month
  AutoPrune = yes
}

Client {
  Name = client-fd
  Address = client
  FDPort= 9102
  Catalog = MyCatalog
  Password = "[password]"
  File Retention = 1 month
  Job Retention = 1 month
  AutoPrune = yes
}

Storage {
  Name = HD-0
  Address = server
  SDPort = 9103
  Password = "[password]"
  Device = "LocalSpool"
  Media Type = "File"
  Maximum Concurrent Jobs = 8
}

Storage {
  Name = DVD-0
  Address = server
  SDPort = 9103
  Password = "[password]"
  Device = "DVDBurner"
  Media Type = "DVD"
  Maximum Concurrent Jobs = 1
}

Storage {
  Name = Tapes
  Address = server
  SDPort = 9103
  Password = "[password]
  Device = "Tapes"
  Autochanger = yes
  Media Type = "DDS"
  Maximum Concurrent Jobs = 8
}

# Generic catalog service
Catalog {
  Name = MyCatalog
  dbname = "[db]"; user = "[user]"; password = "[password]"
}

Messages {
  Name = Standard
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) [EMAIL 
PROTECTED]" -s \"Bacula: %t %e of %c %l\" %r"
  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) [EMAIL 
PROTECTED]" -s \"Bacula: Intervention needed for %j\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  operator = [EMAIL PROTECTED] = mount
  append = "/var/bacula/log" = all, !skipped
} 
  
Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) [EMAIL 
PROTECTED]" -s \"Bacula daemon message\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  append = "/var/bacula/log" = all, !skipped
} 

Pool { 
  Name = HD
  Pool Type = Backup
  Recycle = yes
  Purge Oldest Volume = yes
  Autoprune = yes
  Maximum Volumes = 13
  Volume Retention = 1 month
  Maximum Volume Jobs = 4
  Maximum Volume Bytes = 10g
  Next Pool = DDS
  Storage = HD-0 
  Label Format = "LocalSpoolVol"
  Migration High Bytes = 50G
  Migration Low Bytes = 5G
}

Pool { 
  Name = DVD
  Pool Type = Backup
  Recycle = no
  Autoprune = no
  Volume Retention = 5 years
  Maximum Volume Bytes = 2147483500
  Maximum Volume Jobs = 1
  Volume Use Duration = 1d
  Label Format = "DVD${Year}-${Month:p/2/0/r}-${Day:p/2/0/r}-${NumVols}"
  Storage = DVD-0
} 
  
Pool {
  Name = DDS
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes 
  Volume Retention = 1 month
  Label Format = "Vol"
  Storage = Tapes
} 
  
Console {
  Name = server-mon 
  Password = "[password]"
  CommandACL = status, .status
}
-----
SD.conf:
-----
Storage {
  Name = server-sd
  SDPort = 9103
  WorkingDirectory = "/var/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
  Heartbeat Interval = 5m
}

Director {
  Name = server-dir
  Password = "[password]"
}

Director {
  Name = server-mon
  Password = "[password]"
  Monitor = yes
}

Device {
  Name = LocalSpool
  Media Type = File
  Archive Device = /var/bacula/spool
  LabelMedia = yes;
  Random Access = yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = DVDBurner
  Media Type = DVD
  Archive Device = /dev/hdc
  LabelMedia = yes;
  AutomaticMount = yes;
  AlwaysOpen = no;
  RemovableMedia = yes;
  RandomAccess = yes;
  MaximumPartSize = 2G;
  RequiresMount = yes;
  MountPoint = /cdrom;
  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
  UnmountCommand = "/bin/umount %m";
  SpoolDirectory = /var/bacula/dvd-spool;
  WritePartCommand = "/usr/libexec/bacula/dvd-handler %a write %e %v"
  FreeSpaceCommand = "/usr/libexec/bacula/dvd-handler %a free"
}

Autochanger {
  Name = Tapes
  Device = DDS-0, DDS-1
  Changer Command = "/usr/local/bin/mtx-changer %o %d %S"
  Changer Device = /dev/null
}

Device {
  Name = DDS-0
  Drive Index = 0
  Media Type = DDS
  Archive Device = /dev/nst0
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  AutoChanger = yes
  LabelMedia = yes;
  Offline On Unmount = yes;
  SpoolDirectory=/var/bacula/dds-spool;
  Maximum Spool Size = 4G;
}

Device {
  Name = DDS-1
  Drive Index = 1
  Media Type = DDS
  Archive Device = /dev/nst1
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  AutoChanger = yes
  LabelMedia = yes;
  Offline On Unmount = yes;
  SpoolDirectory=/var/bacula/dds-spool;
  Maximum Spool Size = 4G;
}

Messages {
  Name = Standard
  director = server-dir = all
}

-----
Sorry for the long mail, and thanks for the help!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to