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: > 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 <+49%20221%2063069392> > http://www.bareos.com Fax: +49 221 63 06 93-10 <+49%20221%2063069310> > > Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 > Geschäftsführer: Stephan Dühr, J. Steffens, P. Storz > > -- 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+unsubscr...@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.