cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

lcmbiar.jpgHello,

We use a script to do a backup BIAR, the script works well on QA servers, but in the prod does not execute correctly, it leaves the tomporary files, and the output file is wrong,

Thank you in advance for your help,

Regards,

0 Likes
View Entire Topic
ayman_salem
Active Contributor

After the second look at your screenshot and your script, I see that your question about the generated biar file, and about rename it.

Your script only renames the first one and not others.

...

First, the generated biar files are correct, the biar file has a limit size. When it is reached, a new file (segment) with the number at the end of the file name is created (ex. 1,2,3, and so on). in your case: Temp_Export, Temp_Export1, .... Temp_Export8

In the first biar file (without number) there is a file "segmentManifest.txt" containing the entire name of the segment biar files.

and if you import it later, just type in the name of the biar file with no numbers, and the program will know other segment files from "segmentManifest.txt"

...

so, renaming after creating the biar files will not be a good idea.

However, you can include the name with a date in your options.properties or move the biar files to another directory that has a corresponding name (with date)

Former Member
0 Likes

We test the same scripte on QA same data like prod and we have one file, we donte know why we have those temp file, and I tired to import Temp_Export to vérify the to check the contents of the biar file i got an error message

ayman_salem
Active Contributor
0 Likes

It depends on how many / size of the documents are stored on your system.

and as I mentioned earlier, when the size of the backup file exceeds the limit, a new file is created and so on.

Therefore, you have many files on Prod for one backup.

....

Another tip: Since LCMCLI needs a temporary space to work (about 3-4 times the size of the entire backup), make sure you have enough space for the java tmp directory.

You can control the location of the Java tmp directory by adding -Djava.io.tmpdir=path/to/tmp to your run command.

also, increase the heap size (ex. -Xmx2g)

Former Member
0 Likes

biar2.jpg

erreur-biar.jpg

this is the error mesage we dont know why ?

denis_konovalov
Active Contributor
0 Likes

sounds like you are exporting very large number of objects or they are quite big, so the engine is creating multi-part lcmbiar archive. (which is normal)
The promotion management GUI is not going to be able to import this, you'll need to use CLI as well.

My suggestion is to reduce exports to smaller sets.
or use proper backup, not this...

ayman_salem
Active Contributor
0 Likes

Hi Souhail,

1. it is better to use the lcm.jar instead of biarengine.jar

you can find the script to run it:

windows: ...\SAP BusinessObjects Enterprise XI 4.0\win64_x64\scripts\lcm_cli.bat

linux: ..../sap_bobj/lcm_cli.sh

2. add -Djava.io.tmpdir=path/to/tmp to the script to control the used tmpdir. (As I mentioned earlier).

3. try to reduce the backup size to smaller one (adapt Query in options.properties).

4. When you import it, you can use CLI or Promotion Management in CMC.

but consider:

First, if you have BI4.1, you can not select one or more objects from the backup, the entire backup will be imported.

Second, if you use the Promotion Management in CMC to import the Backup, you must first customize the adaptive server that contains the "Promotion management service" (in "Command Line Parameter", add -Djava.io.tmpdir and increase the heap size, for example -Xmx8g).

......

Finally, as Denis mentions, you are on the safe side with additional CMS DB/FRS backups