Hi there, 

I try to do a copy of my differential and VirtualFull-Backups, but because of I 
already use the NextPool directive for VirtualBackups, I am not able to figure 
out how to do a copy of the same pool.

If I type "run" in bconsole, everything looks fine for me:

The defined Job resources are:
     1: atoss1-default
  [...]
    11: win7-client-copy
    12: y4mcc2-default
Select Job resource (1-12): 11
Run Copy job
JobName:       win7-client-copy
Bootstrap:     *None*
Pool:          win7-client-VirtualFull (From Job resource)
NextPool:      win7-client-Copy2Tape (From unknown source)
Write Storage: win7-client-COPY2TAPE (From Storage from Run NextPool override)
JobId:         *None*
When:          2016-01-24 23:22:14
Catalog:       MyCatalog
Priority:      14
OK to run? (yes/mod/no): 


But If I run the job, I got messages, which I did not expect:

24-Jan 23:24 bareos-dir JobId 1720: Error: Could not start migration job.
24-Jan 23:24 bareos-dir JobId 1720: Using Catalog "MyCatalog"
24-Jan 23:24 bareos-dir JobId 1751: Copying using JobId=1106 
Job=win7-client-copy.2016-01-22_18.46.54_08
24-Jan 23:24 bareos-dir JobId 1751: No files found to read. No bootstrap file 
written.
24-Jan 23:24 bareos-dir JobId 1751: Previous Job has no data to copy.
24-Jan 23:24 bareos-dir JobId 1751: Bareos bareos-dir 15.2.2 (16Nov15):
  Build OS:               x86_64-pc-linux-gnu ubuntu Ubuntu 14.04 LTS
  Prev Backup JobId:      1106
  Prev Backup Job:        win7-client-copy.2016-01-22_18.46.54_08
  New Backup JobId:       *None*
  Current JobId:          1751
  Current Job:            win7-client-copy.2016-01-24_23.24.59_50
  Backup Level:           Differential
  Client:                 win7-client-fd
  FileSet:                "win7-client-windows"
  Read Pool:              "win7-client-Differential" (From Job DiffPool 
override)
  Read Storage:           "win7-client-VIRTUALFULL" (From Pool resource)
  Write Pool:             "win7-client-VirtualFull" (From Job Pool's NextPool 
resource)
  Write Storage:          "win7-client-VIRTUALFULL" (From Storage from Pool's 
NextPool resource)
  Next Pool:              "win7-client-VirtualFull" (From Job Pool's NextPool 
resource)
  Catalog:                "MyCatalog" (From Client resource)
  Start time:             24-Jan-2016 23:24:59
  End time:               24-Jan-2016 23:24:59
  Elapsed time:           0 secs
  Priority:               14
  SD Files Written:       0
  SD Bytes Written:       0 (0 B)
  Rate:                   0.0 KB/s
  Volume name(s):         *None*
  Volume Session Id:      0
  Volume Session Time:    0
  Last Volume Bytes:      0 (0 B)
  SD Errors:              0
  SD termination status:  
  Termination:            Copying -- no files to copy

24-Jan 23:24 bareos-dir JobId 1720: Job failed.

Why does the pool and the storage change? And why Bareos does not find 
something to copy? I got some Jobs in /mnt/STORAGE/hauptverw1 .

It is my first contact with Bareos, so maybe I have a basic misunderstanding?
I also entered different values for Selection Type and Selection Pattern, but 
nothing helped.
   
The target was to copy the differential and the (Virtual)Full-backups from 
/mnt/STORAGE/hauptverw1 to /mnt/STORAGE/copy, later to tape.
How can copy the jobs? Where is my error? Someone has a hint for me?


Kindly regards and thank you.


My configuration:

bareos-dir.conf
-------------------------------------------------------------------------------------------
Client {
  Name = win7-client-fd
  Address = 192.168.1.193
  Password = "123"  
  Maximum Concurrent Jobs = 5   
}


#
# Differential Pool definition
#
Pool {
  Name                          = win7-client-Differential
  Pool Type                     = Backup
  Storage                       = win7-client-DIFF

  Recycle                       = yes                       
  AutoPrune                     = yes                     
  Volume Retention              = 14 days          
  Maximum Volume Bytes          = 100G          
  Maximum Volumes               = 100               
  Label Format                  = "win7-client-Differential-"      
  NextPool                      = win7-client-VirtualFull
}


#
# VirtualFull Pool definition
#
Pool {
  Name                          = win7-client-VirtualFull
  Pool Type                     = Backup
  Storage                       = win7-client-VIRTUALFULL

  Recycle                       = yes
  AutoPrune                     = yes                            
  Volume Retention              = 14 days                 
  Maximum Volume Bytes          = 500G                
  Maximum Volumes               = 100                        
  Label Format                  = "win7-client-VirtualFull-"  
  NextPool                              = win7-client-Copy2Tape
}


#
# Copy2Tape-Pool definition
#
Pool {
  Name                          = win7-client-Copy2Tape
  Pool Type                     = Backup
  Storage                       = win7-client-COPY2TAPE

  Recycle                       = yes                             
  AutoPrune                     = yes                            
  Volume Retention              = 14 days                 
  Maximum Volume Bytes          = 500G                
  Maximum Volumes               = 100                      
  Label Format                  = "win7-client-Copy2Tape-"  
}


#
# Incremental Pool definition
#
Pool {
  Name                          = win7-client-Incremental
  Pool Type                     = Backup
  Storage                       = win7-client-INCR

  Recycle                       = yes                       
  AutoPrune                     = yes                     
  Volume Retention              = 1 days           
  Maximum Volume Bytes          = 100G           
  Maximum Volumes               = 100               
  Label Format                  = "win7-client-Incremental-"       
}


#
# Storage for each pool
#
Storage {
   Name                    = win7-client-DIFF
   SDPort                  = 9103
   Address                 = bareos-dir-sd
   Device                  = FileStorage-win7-client-DIFF
   MediaType               = File
   Password                        = "="
   MaximumConcurrentJobs   = 100
}


Storage {
   Name                    = win7-client-VIRTUALFULL
   SDPort                  = 9103
   Address                 = bareos-dir-sd
   Device                  = FileStorage-win7-client-VIRTUALFULL
   MediaType               = File
   Password                    = "="
   MaximumConcurrentJobs   = 100
}


Storage {
   Name                    = win7-client-COPY2TAPE
   SDPort                  = 9103
   Address                 = bareos-dir-sd
   Device                  = FileStorage-win7-client-COPY2TAPE
   MediaType               = File2
   Password                = "="
   MaximumConcurrentJobs   = 100
}



Storage {
   Name                    = win7-client-INCR
   SDPort                  = 9103
   Address                 = bareos-dir-sd
   Device                  = FileStorage-win7-client-INCR
   MediaType               = File
   Password                        = "="
   MaximumConcurrentJobs   = 100
}


JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Messages = Standard
  Priority = 10
  Maximum Concurrent Jobs = 3
}


Job {
   Name              = "win7-client-default"
   JobDefs           = "DefaultJob"
   Schedule          = "WeeklyCycle"
   Pool                  = win7-client-Differential
   FileSet           = "win7-client-windows"
   Client            = win7-client-fd
   Level                 = Differential   
   Accurate              = yes
   Priority          = 14
 
   Differential Backup Pool = win7-client-Differential  
   Incremental Backup Pool = win7-client-Incremental
   VirtualFull Backup Pool = win7-client-VirtualFull

   Write Bootstrap = "/var/lib/bareos/bootstrap/%c.bsr"
}


Job {
   Name              = "win7-client-copy"
   JobDefs           = "DefaultJob"
   Type                          = Copy
   Schedule          = "WeeklyCycle"
   Pool              = win7-client-VirtualFull
   FileSet           = "win7-client-windows"
   Client            = win7-client-fd
   Level             = Differential
   Accurate          = yes
   Priority          = 14
   Storage                       = win7-client-COPY2TAPE

   Selection Type = Job
   Selection Pattern = "."

 
   Differential Backup Pool = win7-client-Differential
   Incremental Backup Pool = win7-client-Incremental
   VirtualFull Backup Pool = win7-client-VirtualFull

   Write Bootstrap = "/var/lib/bareos/bootstrap/%c.bsr"
}


FileSet {
  Name = "win7-client-windows"
  Enable VSS = yes
  Include {
    Options {
      Signature = MD5
      Drive Type = fixed
      IgnoreCase = yes
      WildFile = "[A-Z]:/pagefile.sys"
      WildDir = "[A-Z]:/RECYCLER"
      WildDir = "[A-Z]:/$RECYCLE.BIN"
      WildDir = "[A-Z]:/System Volume Information"
      Exclude = yes
    }

    File = /
  }
}


-----------------------------------------------------------------------------------------------------


bareos-sd.conf
-----------------------------------------------------------------------------------------------------
Device {
   Name                    = FileStorage-win7-client-DIFF
   MediaType               = File
   ArchiveDevice           = /mnt/STORAGE/hauptverw1/
   DeviceType              = File
   LabelMedia              = yes
   RandomAccess            = yes
   AutomaticMount          = yes
   RemovableMedia          = no
   LabelMedia              = yes
   MaximumConcurrentJobs   = 100
}


Device {
   Name                    = FileStorage-win7-client-VIRTUALFULL
   MediaType               = File
   ArchiveDevice           = /mnt/STORAGE/hauptverw1/
   DeviceType              = File
   LabelMedia              = yes
   RandomAccess            = yes
   AutomaticMount          = yes
   RemovableMedia          = no
   LabelMedia              = yes
   MaximumConcurrentJobs   = 100
}


Device {
   Name                    = FileStorage-win7-client-COPY2TAPE
   MediaType               = File2
   ArchiveDevice           = /mnt/STORAGE/copy/
   DeviceType              = File
   LabelMedia              = yes
   RandomAccess            = yes
   AutomaticMount          = yes
   RemovableMedia          = no
   LabelMedia              = yes
   MaximumConcurrentJobs   = 100
}



Device {
   Name                    = FileStorage-win7-client-INCR
   MediaType               = File
   ArchiveDevice           = /mnt/STORAGE/hauptverw1/
   DeviceType              = File
   LabelMedia              = yes
   RandomAccess            = yes
   AutomaticMount          = yes
   RemovableMedia          = no
   LabelMedia              = yes
   MaximumConcurrentJobs   = 100
}
-------------------------------------------------------------------------------------------------------------


root@bareos-dir:/home/bari# ls /mnt/STOARGE/hauptverw1/
win7-client-Differential-0002  win7-client-VirtualFull-0003  
win7-client-VirtualFull-0004

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to