Parallel recording on two tapes

47 views
Skip to first unread message

Ramil

unread,
Aug 8, 2023, 11:40:36 PM8/8/23
to bareos-users
Can I set up parallel recording on two tapes in one job? That is, not in two different jobs. It is in one job, because run "before" and "after" scripts.

Philipp Storz

unread,
Aug 9, 2023, 3:39:46 AM8/9/23
to bareos...@googlegroups.com
Hello Ramil,

Am 09.08.23 um 05:40 schrieb Ramil:
> Can I set up parallel recording on two tapes in one job?That is, not in two different jobs.
No, this is not possible.

It is
> in one job, because run "before" and "after" scripts.

I don't understand what you want to say here, sorry.

Best regards,

Philipp

--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, J. Steffens, P. Storz

Ramil

unread,
Aug 9, 2023, 5:30:40 AM8/9/23
to bareos-users
Sorry for not expressing my point fully. I still don't know how to convey the meaning correctly...
The data obtained during the execution of one job must be written to two tapes in parallel.
In this configuration, data is written to a single tape. But it is necessary that the data be simultaneously duplicated on the second tape.
It is possible to run a second job to write to a second tape, but in this case the "RunBeforeJob" script is executed, and only after it has been executed will the backup data appear.


Job {
  Name = "ORA_Backup-job"
  Type = Backup
  Client = vm-holt-ora03-fd
  Description = "Backup ORA database"
  Level = Full
  FileSet = "ora_corebt"
  RunBeforeJob = "/home/oracle/scripts/rman_backup_corebt.sh"
  RunScript {
  FailJobOnError = Yes
  RunsOnClient = Yes
  RunsWhen = Before
  Command = "sudo su - oracle -c /home/oracle/scripts/rman_backup_corebt.sh"
}
# RunAfterJob = "sudo /bin/su - oracle -c /opt/oraappl/scripts/stop-backup-mode.sh"
  Storage = TapeLibrary
  Messages = Standard
  Pool = ORA_DB
  SpoolData = yes
  Priority = 12
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
  Full Backup Pool = ORA_DB                
}

FileSet {
  Name = "ora_corebt"
    Include {
    Options {
      Signature = MD5
      Compression = LZ4
    }
     File = ""/backup/corebt/full_backup_corebt.tar.gz"
  }
}

Pool {
  Name = Full-corebt
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 23h
  Action On Purge = Truncate
 #Use Volume Once = yes
 #Maximum Volume Bytes = 100G
  Maximum Volumes = 3
  Maximum Volume Jobs = 1
   Label Format = "${Pool}"
}

/etc/bareos/bareos-dir.d/storage

Storage {
  Name = TapeLibrary
  Address  = 10.64.118.172
  Password = "LhEbHl35nvQyUnYqcenMs/ECUpIDmtlW+NbECHorrITE"
  Maximum Concurrent Jobs = 100
  Device = autochanger-0
  Media Type = LTO-8
  Auto Changer = yes
  TLS Enable = no
  TLS Require = no
}

/etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf

Autochanger {
  Name = "autochanger-0"  
  Changer Device = /dev/tape/by-id/scsi-350014380272e92ac-changer                
  Device = tapedrive-0
  Device = tapedrive-1
  Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"

}

/etc/bareos/bareos-sd.d/device/tapedrive-0.conf

Device {
    Name = "tapedrive-0"
    DeviceType = tape
    DriveIndex = 0
    ArchiveDevice = /dev/tape/by-id/scsi-350014380272e92ad-nst
    MediaType = LTO-8
    AutoChanger = yes                      
    AutomaticMount = yes
    Label Media = yes
    Maximum Concurrent Jobs = 100
    Maximum File Size = 24GB                
    AlwaysOpen = yes
    Maximum Spool Size = 200G
    Maximum Changer Wait = 600
    Maximum Rewind Wait = 600
    Maximum Open Wait = 600
    Spool Directory = /mnt/backups/spool
    Maximum Block Size = 1048576
 }

/etc/bareos/bareos-sd.d/device/tapedrive-1.conf

Device {
    Name = "tapedrive-1"
    DeviceType = tape
    DriveIndex = 0
    ArchiveDevice = /dev/tape/by-id/scsi-350014380272e92b0-nst
    MediaType = LTO-8
    AutoChanger = yes                      
    AutomaticMount = yes
    Label Media = yes
    Maximum Concurrent Jobs = 100
    Maximum File Size = 24GB                
    AlwaysOpen = yes
    Maximum Spool Size = 200G
    Maximum Changer Wait = 600
    Maximum Rewind Wait = 600
    Maximum Open Wait = 600
    Spool Directory = /mnt/backups/spool
    Maximum Block Size = 1048576
 }
среда, 9 августа 2023 г. в 13:39:46 UTC+6, Philipp Storz:

Spadajspadaj

unread,
Aug 9, 2023, 5:32:52 AM8/9/23
to bareos...@googlegroups.com

Isn't that what Copy job is for?

Sure, you have that short period after the original job had been run and the Copy job wasn't run yet but it's usually relatively acceptable.

On 9.08.2023 11:30, Ramil wrote:
Sorry for not expressing my point fully. I still don't know how to convey the meaning correctly...
The data obtained during the execution of one job must be written to two tapes in parallel.
In this configuration, data is written to a single tape. But it is necessary that the data be simultaneously duplicated on the second tape.


--
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 bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/dc087395-57c6-41e1-b739-3fceb86848c5n%40googlegroups.com.

Ramil

unread,
Aug 9, 2023, 5:50:11 AM8/9/23
to bareos-users
In order for the second task to duplicate the data on the second tape, you need to know when the script will be executed and the data for backup will be ready.
среда, 9 августа 2023 г. в 15:32:52 UTC+6, Spadajspadaj:

Andreas Rogge

unread,
Aug 9, 2023, 5:58:19 AM8/9/23
to bareos...@googlegroups.com
Hi Ramil,

That's not supported by Bareos. If you really need to have two tapes
written at once, you'll either need some kind of appliance that does
that (i.e. maybe some tape vendor offers something like that) or you can
try to fund development of that feature in Bareos.

Best Regards,
Andreas

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages