Hello,

I'm trying to setup a Progressive Virtual Full backup on a full HDD system. From what the logs tell me, the job starts but the sd doesn't let it go throught. I will put the log, bacula-sd and bacula-dir bellow. I changed the hostnames and passwords for security reasons.

*Here's the log from the PVF job:*
bacula-dir JobId 450: Bacula bacula-dir 9.6.4 (08Jun20):
  Build OS:               x86_64-pc-linux-gnu ubuntu 20.04
  JobId:                  450
  Job:                    Teste_2.2020-12-21_13.58.13_58
  Backup Level:           Virtual Full
  Client:                 "myClient" 9.4.2 (04Feb19) x86_64-pc-linux-gnu,ubuntu,20.04
  FileSet:                "myFiles - Linux" 2020-12-07 20:17:23
  Pool:                   "Virtual Full - Remoto" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "myStorage" (From Job resource)
  Scheduled time:         21-Dec-2020 13:58:13
  Start time:             17-Dec-2020 20:22:35
  End time:               17-Dec-2020 20:22:35
  Elapsed time:           1 sec
  Priority:               10
  SD Files Written:       0
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Volume name(s):
  Volume Session Id:      4
  Volume Session Time:    1608237853
  Last Volume Bytes:      0 (0 B)
  SD Errors:              0
  SD termination status:
  Termination:            Backup Canceled
bacula-dir JobId 450: Fatal error:
     Storage daemon didn't accept Device "ubuntu2004-Dev1" command.
bacula-dir JobId 450: Found 24 files to consolidate into Virtual Full.
bacula-dir JobId 450: Consolidating JobIds=427,428,429,431,432
bacula-dir JobId 450: Warning: This Job is not an Accurate backup so is not equivalent to a Full backup. bacula-dir JobId 450: Start Virtual Backup JobId 450, Job=Teste_2.2020-12-21_13.58.13_58


*Here's my sd config
*

Storage {                             # definition of myself
  Name = linuxenvtest2-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/run/bacula"
  Plugin Directory = "/usr/lib/bacula"
  Maximum Concurrent Jobs = 20
  #SDAddress = 127.0.0.1
}

Director {
  Name = bacula-dir
  Password = "myPassword"
}

Director {
  Name = linuxenvtest2-mon
  Password = "myPassword"
  Monitor = yes
}

#Autochanger {
#  Name = LinuxEnv
#  Device = LinuxEnv-Dev1, LinuxEnv-Dev2
#  Changer Command = ""
#  Changer Device = /dev/sg0
#}

Device {
  Name = LinuxEnv-Dev1
  Media Type = File1
  Archive Device = /tmp
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = LinuxEnv-Dev2
  Media Type = File1
  Archive Device = /tmp
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}
Messages {
  Name = Standard
  director = linuxenvtest2-dir = all
}
*
**Here are my dir configs*

**Director {
  Name = "bacula-dir"
  Messages = "Daemon"
  QueryFile = "/etc/bacula/scripts/query.sql"
  WorkingDirectory = "/etc/bacula/working"
  PidDirectory = "/var/run"
  MaximumConcurrentJobs = 20
  Password = "myPassword"
}
Client {
  Name = "bacula-fd"
  Address = "myIP"
  FdPort = 9102
  Password = "bCnK3Z9AxYO9Q0MiXhxcgz930rA67sqUAti+cVhcTUTv"
  Catalog = "MyCatalog"
  FileRetention = 5184000
  JobRetention = 15552000
  AutoPrune = yes
}
Client {
  Name = "linuxenvtest2-fd"
  Address = "myIP"
  Password = "myPassword"
  Catalog = "MyCatalog"
  MaximumConcurrentJobs = 10
}
Client {
  Name = "netbrapc22-fd"
  Address = "myIP"
  Password = "myPassword"
  Catalog = "MyCatalog"
}
Job {
  Name = "RestoreFiles"
  Type = "Restore"
  Messages = "Standard"
  Storage = "File1"
  Pool = "File"
  Client = "bacula-fd"
  Fileset = "Full Set"
  Where = "/tmp/bacula-restores"
}
Job {
  Name = "Teste 2"
  Type = "Backup"
  Level = "Incremental"
  Messages = "Standard"
  Storage = "File1"
  Pool = "Incremental - Local"
  NextPool = "Virtual Full - Remoto"
  Client = "linuxenvtest2-fd"
  Fileset = "myFiles - Linux"
  MaximumConcurrentJobs = 10
  BackupsToKeep = 2
  DeleteConsolidatedJobs = yes
}
Storage {
  Name = "File1"
  SdPort = 9103
  Address = "myIP"
  Password = "myPassword"
  Device = "ubuntu2004-Dev1"
  MediaType = "File1"
  Autochanger = "File1"
  MaximumConcurrentJobs = 10
}
Storage {
  Name = "File2"
  SdPort = 9103
  Address = "myIP"
  Password = "myPassword"
  Device = "ubuntu2004-Dev2"
  MediaType = "File1"
  Autochanger = "File2"
  MaximumConcurrentJobs = 10
}
Storage {
  Name = "linuxenvtest2-sd"
  Address = "myIP"
  Password = "myPassword"
  Device = "LinuxEnv-Dev2"
  MediaType = "File1"
  Autochanger = "linuxenvtest2-sd"
  MaximumConcurrentJobs = 10
  MaximumConcurrentReadjobs = 10
}
Catalog {
  Name = "MyCatalog"
  Password = "masterti45"
  User = "bacula"
  DbName = "bacula"
}
Schedule {
  Name = "Hourly - Workdir"
  Run = hourly at 0:15
}
Schedule {
  Name = "Monthly Full - Daily Incremental"
}
Schedule {
  Name = "Virtual Full - Test 1"
  Run = Level="Incremental" Priority=1 hourly at 0:25
  Run = Level="VirtualFull" Priority=2 hourly at 0:30
}
Schedule {
  Name = "WeeklyCycle"
  Run = Level="Full" 1st sun at 23:05
  Run = Level="Differential" 2nd-5th sun at 23:05
  Run = Level="Incremental" mon-sat
}
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Level="Full" at 23:10
}
Fileset {
  Name = "Catalog"
  Include {
    File = "/etc/bacula/working/bacula.sql"
    Options {
      Signature = "Md5"
    }
  }
}
Fileset {
  Name = "Full Set"
  Include {
    File = "/usr/sbin"
    File = "/home/netwire/myFiles"
    File = "C:/backup"
    Options {
      Signature = "Md5"
    }
  }
  Exclude {
    File = "/etc/bacula/working"
    File = "/tmp"
    File = "/proc"
    File = "/tmp"
    File = "/sys"
    File = "/.journal"
    File = "/.fsck"
  }
}
Fileset {
  Name = "NETBRAPC22 - WorkDir"
  Include {
    File = "c:/#WORKDIR/_plunet/2020-Dez"
  }
}
Fileset {
  Name = "Windows backup"
  Include {
    File = "c:/#WORKDIR/_plunet/2020-Dez"
  }
}
Fileset {
  Name = "myFiles - Linux"
  Include {
    File = "/home/netwire/myFiles"
  }
}
Pool {
  Name = "Default"
  PoolType = "Backup"
  MaximumVolumes = 100
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 31536000
  Storage = "File2"
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "File"
  PoolType = "Backup"
  LabelFormat = "Vol-"
  MaximumVolumes = 100
  MaximumVolumeBytes = 53687091200
  VolumeRetention = 31536000
  NextPool = "Default"
  Storage = "File2"
  AutoPrune = yes
  Recycle = yes
}
Pool {
  Name = "Incremental - Local"
  PoolType = "Backup"
  LabelFormat = "IncrL"
  MaximumVolumes = 100
  MaximumVolumeBytes = 10000000000
  Storage = "File1"
}
Pool {
  Name = "Scratch"
  PoolType = "Backup"
}
Pool {
  Name = "Virtual Full - Remoto"
  PoolType = "Backup"
  LabelFormat = "VFull"
  LabelType = "Bacula"
  MaximumVolumes = 100
  MaximumVolumeBytes = 10000000000
  Storage = "linuxenvtest2-sd"
  Catalog = "MyCatalog"
}
Messages {
  Name = "Daemon"
  MailCommand = "/usr/sbin/bsmtp -h localhost -f \"(Bacula) <%r>\" -s \"Bacula daemon message\" %r"
  Mail = root@localhost = All, !Debug, !Saved, !Skipped
  Append = /var/log/bacula/bacula.log = All, !Debug, !Saved, !Skipped
  Console = All, !Debug, !Saved, !Skipped
}
Messages {
  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 = root@localhost = All, !Debug, !Saved, !Skipped
  Append = /var/log/bacula/bacula.log = All, !Debug, !Saved, !Skipped
  Console = All, !Debug, !Saved, !Skipped
  Operator = root@localhost = Mount
  Catalog = All, !Debug, !Saved
}
Console {
  Name = "bacula-mon"
  Password = "uQnAUgX3xipzY7sCho1m8e+O7fAqLPKphv/FtMX1KQJH"
  CommandAcl = "status"
  CommandAcl = ".status"
}
JobDefs {
  Name = "DefaultJob"
  Type = "Backup"
  Level = "Incremental"
  Messages = "Standard"
  Storage = "File1"
  Pool = "File"
  Client = "bacula-fd"
  Fileset = "Full Set"
  Schedule = "WeeklyCycle"
  WriteBootstrap = "/etc/bacula/working/%c.bsr"
  SpoolAttributes = yes
  Priority = 10
}


_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to