Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Line or automated Backup

Status
Not open for further replies.

JohnLV

MIS
Jun 14, 2002
2
US
Hello Everyone,

Has anyone setup a backup for series 7 (Configuration Settings, Security Settings, Upfront, and Web Reports) via a command line or automated script? I need to back this stuff up everyday and would like to automate it.

Thanks in advance.

John
 
For each folder,you could have a .bat backup process like the one below for cubes, and create one for each folder of files you want to back up by creating a macro that is scheduled to call each .bat file daily automatically at a certain time. I don't know if this is what you are looking or or not. ... ... But it would be one .mac file to do all the processes you want.


cd \backup
echo ####################mycubes Backup Started######
echo ** ............................................. mycubes Backup Started ...... >>e:\backup\backup.log
date >>e:\backup\backup.log <e:\backup\enter.txt
time >>e:\backup\backup.log <e:\backup\enter.txt
echo ************************************************************************* >>e:\backup\backup.log
del e:\backup\mycubes9.zip >>backup.log
ren e:\backup\mycubes8.zip mycubes9.zip
ren e:\backup\mycubes7.zip mycubes8.zip
ren e:\backup\mycubes6.zip mycubes7.zip
ren e:\backup\mycubes5.zip mycubes6.zip
ren e:\backup\mycubes4.zip mycubes5.zip
ren e:\backup\mycubes3.zip mycubes4.zip
ren e:\backup\mycubes2.zip mycubes3.zip
ren e:\backup\mycubes1.zip mycubes2.zip
ren e:\backup\mycubes.zip mycubes1.zip

e:\backup\pkzip25 -add -rec -path=current mycubes g:\pwrplay\mycubes\*.* >e:\backup\backupzip.log
dir mycubes.zip >>e:\backup\backup.log
del G:\backup\mycubes.zip >>e:backup.log
copy e:\backup\mycubes.zip G:\backup\mycubes.zip >>e:\backup\backup.log
echo ************************************************************************* >>e:\backup\backup.log
date >>backup.log <e:\backup\enter.txt
time >>backup.log <e:\backup\enter.txt
echo ** ........................................... mycubes Backup Completed .. >>e:\backup\backup.log
echo ************************************************************************* >>e:\backup\backup.log

CP [cook]
 
What about the security and configurations settings asstated in the Cognos Series 7 backup and recovery guide?
 
I see just for Upfront Data Store. You might want to open up a call with Cognos for them to work on a solution for you.
Good Luck..

1. From the command line, run the command upfpack.exe. See the 'How To Move Your PowerPlay Application' PDF file (move_pp.pdf) for any parameters.
2. Run the command upfdbadm.exe with the parameter -b
upfdbadm.exe -b C:\BackUp\UpFrontStore.Bak

-- Restore --

1. Run the command upfdbadm.exe with the parameter -r
upfdbadm.exe -r C:\BackUp\UpFrontStore.Bak
2. Run the command upfunpack.exe with the follow parameters
-ns <NameSpace> -del

You can create a batch file for this

** Backup.bat **
D:
CD\Progra~1\Cognos\cer1\binUpfpack.exe -un Admin -pw admin1234 -d D:\Backup
upfdbadm.exe -b D:\Backup\UpFrontStore.Bak

** Restore.bat **
D:
CD\Progra~1\Cognos\cer1\binUpfunpack.exe -un admin -pw admin1234 -p D:\Backup\Upfpackage.pkg -ns default -del
upfdbadm.exe -r D:\Backup\UpFrontStore.Bak

CP [cook]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top