0

I have one bacula server on site which regularly backup all my servers. Now i am trying to create copy job which should copy all full backups to offsite. But i still getting error:

Device "FileStorage" not in SD Device resources.

that is strange because onsite storage device is called: FileStorage and offsite storage device is: OffsiteFileStorage. (if i rename offsite device the job will just hang) if i try to do regular backup to offsite storage everything works normal.

configuration files:

bacula-storage.conf (onsite)

Storage {
  Name = Offsite
    Address = offsite.example.com
    SDPort = 9103
    Password = "password"
    Device = "OffsiteFileStorage"
    Media Type = File
    }


Storage {
  Name = File
    Address = bacula.example.com
    SDPort = 9103
    Password = "password"
    Device = FileStorage
    Media Type = File
    }

Pool {
  Name = Server-Full-Pool
  Pool Type = Backup
  Storage = File
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 6 months
  Maximum Volumes = 40 # Limit number of Volumes in Pool
  Maximum Volume Bytes = 10G
  LabelFormat = "Server-Full"
  RecyclePool = Scratch
  Next Pool = Offsite-Pool
  Cleaning Prefix = "CLN"
  }

Pool {
    Name = Offsite-Pool
    Pool Type = Backup
    Storage = Offsite
    Volume Use Duration = 1 day
    Volume Retention = 6 months
    Scratch Pool = Offsite-Scratch
    RecyclePool = Offsite-Scratch
    File Retention =  1 year
    Job Retention =  1 year
    LabelFormat = "Copy-full"
    Cleaning Prefix = "CLN"
    }

Job {
    Name = "OffsiteCopyFull"
    Type = Copy
    Pool = Server-Full-Pool
    Schedule = "WeeklyOffsiteCopy"
    Client = None
    FileSet = None
    Selection Type = PoolUncopiedJobs
    Maximum Concurrent Jobs = 1
    Storage = Offsite
    Messages = Standard
    Priority = 10
    Write Bootstrap = "/var/spool/bacula/offsite-copy-%c.bsr"
    }

Schedule {
  Name = "WeeklyOffsiteCopy"
  Run = Full tue at 11:02
}

Client {
  Name = None
  Address = localhost
  Catalog = MyCatalog
  Password = "NoNe"          # password for FileDaemon
}

FileSet {
  Name = None
  Include {
      Options {
         signature = MD5
      }
  }
}

bacula-sd.conf (onsite)

Storage {                             # definition of myself
  Name = bacula-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/spool/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
  Heartbeat Interval = 1 Minute            # Prevents timeouts
}

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

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /storage/raid5/BACKUP/
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

bacula-sd.conf (offsite)

Storage {                             # definition of myself                                                                                                                                                       
  Name = bacula-sd                                                                                                                                                                                                 
  SDPort = 9103                  # Director's port                                                                                                                                                                 
  WorkingDirectory = "/var/spool/bacula"                                                                                                                                                                           
  Pid Directory = "/var/run"                                                                                                                                                                                       
  Maximum Concurrent Jobs = 20                                                                                                                                                                                     
  Heartbeat Interval = 1 Minute            # Prevents timeouts                                                                                                                                                     
}                                                                                                                                                                                                                  

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


                                                                                                                                                                                                                 Device {                                                                                                                                                                                                           
  Name = OffsiteFileStorage                                                                                                                                                                                        
  Media Type = File                                                                                                                                                                                                
  Archive Device = /Backup/Offsite/                                                                                                                                                                                
  LabelMedia = yes;                   # lets Bacula label unlabeled media                                                                                                                                          
  Random Access = yes;                                                                                                                                                                                             
  AutomaticMount = yes;               # when device opened, read it                                                                                                                                                
  RemovableMedia = no;                                                                                                                                                                                             
  AlwaysOpen = no;                                                                                                                                                                                                 
}   
3

AFAIK copying jobs between storage-daemons is still not possible.

Yes, at this time. Both migration and copy jobs are restricted at this time to using a single SD for source and destination, because there is no currently existing protocol in Bacula for one SD to communicate directly with another. (see 2nd answer here: http://bacula.10910.n7.nabble.com/Migration-Copy-jobs-from-Storage-daemon-to-another-td66239.html)

The only solution which comes to my mind is to mount the offsite-location with some lower-level protocol like nfs and use it from the same storage-daemon on the source-server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.