Наши преимущества

PTC Pro / Engineer Wildfire v4.0 (5.0) (часть 3)

Статус
Закрыто для дальнейших ответов.
anickolsky, скажите пожалуйста ещё как установить WTBackup? Есть алгоритм установки? мне если чесна не понятно с чего начинать там. к примеру Windchill было не сложно установить нашел файл запуска и следовал пунктам, а тут такого нет. Заранее спасибо.
разархивировать... указать настройки в файле sitewtbackup.proeprties
все подробно в wtbackup.docx или wtbackupx.pdf
 
anickolsky, 2. Изменить sitewtbackup.properties и изменить соответствующие значения свойств
3. Изменить wtbackup.bat
a. Установить WT_HOME
b. Установите JAVA_HOME
c. Активировать соответствующую команду резервного копирования, удалив бэр заявление
вообще не понятно на что менять все в п.2 на какие свойства менять что менять в п.3 конкретики нет не понятно что на что менять, как установить п.a и п.b, и где оно само backup-заявление? Поделитесь опытом пожалуйста. Заранее спасибо.
 
Выложите, пожалуйста, литературу или краткую инструкцию по установке Windchill, с описанием как лечить желательно.
 
anickolsky, в wtbackup изменил всё что было возможно установил все что нужно но он как нарочно ничего не копирует подскажите что делать?
 
anickolsky, sitewtbackup.properties:

#Options are aphelion,windchillds
ldap=\\usr\\var\\lde\\PTCLdap

#Windchill DS LDAP settings
#windchillds.directory=/ptc9.1/WindchillDS
#windchillds.logs.delete=true

#Aphelion settings
aphelion.logs.delete=true

#The backup directory can be on another server and you can use syntax like backup.dir=//server/wtbackup
backup.dir=I:

#If true will remove the previous backup before commencing
#Set this to false if doing an incremental backup
backup.dir.delete=false

#If true will zip the entire backup directory - could be lengthy!
backup.zip=false

#Possible options are full,incremental or false
#full copies all of the filevaults to the backup directory
#incremental uses robocopy to do an incremental backup. If you use incremental, make sure backup.dir.delete=false
filevaults.backup=incremental

#filevaults.removeunreferencedfiles=[true,false]
filevaults.removeunreferencedfiles=false
#Currently this only works with a single vault
filevaults.vaultname=defaultcachevault

#filevaults.folders must be relative to filevaults.basedir
#filevaults.basedir=c:/ptc
#filevaults.folders=Windchill_8.0/vaults/defaultcachevault,mastercontentfolder1,ReplicationFolder
filevaults.basedir=${windchill.home.directory}
#If using filevaults.backup=incremental then by default the folder specified here will be backed up recursively
#If using filevaults.backup=full then you must use ant syntax to work recursively, e.g. vault/** will recursively backup all files under the folder ${filevaults.basedir}/vaults
filevaults.folders=vaults

#Executes listVaultFiles.sql to list all of the vaulted files cross referencing their path on the OS with their document name and number. Output is zipped under ${backup.dir}/<SUBDIR>/listVaultFiles
#These scripts do not work for pdmlink 8, so if you are using this version then set list.vault.files=false
list.vault.files=true
mailhost=int-mail.ptcnet.ptc.com
from.address=dxd@ptc.com
#Comma delimited list
to.addresses=dxd@ptc.com

wvs.backup=false
#semi colon delimited list of worker directories
wvs.worker.directory=I:\ptc\Windchill_9.0\Windchill\wvs
wvs.backup.files=monitor_*.log,helper_*.log,worker_*.log,trail.txt.*,std.out
wvs.logs.delete=true
#Log files older than this number of days will be deleted
wvs.remove.older.than=1

windchill.stop=windchill stop
#windchill.stop=net stop wt8
windchill.start=windchill start
#windchill.start=net start wt8
windchill.logs.delete=true
#The list of files here will all be backed up. All paths are relative to windchill.home.directory
#Note that the ** allows you to backup a whole directory structure, like wtCustom/**
windchill.backup.conffiles=logs/*.*,*.xconf,codebase/*.properties,codebase/*.xconf,db/db.*,codebase/WEB-INF/*.*,tasks/wt/federation/*.xml,wtSafeArea/**,wtCustom/**,codebase/*.ini,codebase/com/ptc/windchill/cadx/cfg/**,codebase/instreg/**

#Windchill installer
#The Windchill PSI installer depends on the existence of the installer global registry files
#See Windchill® Installation and Configuration Guide Advanced for further details
#These files are backed up but not automatically restored you need to restore them manually if required
#installer.registry.drive1=d:/
#installer.registry.files1=User Profiles/dxd.PTCNET/Application Data/PTC/Windchill/*.xml
installer.registry.drive2=I:/
installer.registry.files2=ptc/Windchill_9.0/ocu/installer/instreg/registry

#Needed when calling RemoveUnreferencedFilesFromVault
windchill.admin.user=wcadmin
windchill.admin.password=wcadmin

#Options are oracle,mssql
rdbms=oracle

#Microsoft SQL Server commands
#This section only used if rdbms=mssql
#mssql.sqlcmd.dir=D:/PTC/Microsoft SQL Server/90/Tools/Binn
#mssql.sqlcmd.exe=SQLCMD.EXE
#mssql.system.user=sa
#mssql.system.password=wcadmin
#First component in wt.pom.serviceName in db.properties
# e.g. if the db.properties entry is wt.pom.serviceName=//VWENZELPDS\\VWENZEL\:1433;DatabaseName\=wind
#then mssql.server=VWENZELPDS\\VWENZEL
#mssql.server=VWENZELPDS\\VWENZEL
#Third component in wt.pom.serviceName in db.properties
# e.g. if the db.properties entry is wt.pom.serviceName=//VWENZELPDS\\VWENZEL\:1433;DatabaseName\=wind
#then mssql.dbname=wind
#mssql.dbname=wind
#End:This section only used if rdbms=mssql


#This section only used if rdbms=oracle
oracle.system.user=system
oracle.system.password=manager
oracle.service.name=wtremote
oracle.home=I:/oracle
#The only argument for the oracle.export and oracle.import parrameters you are likely to change is the PARALLEL=, see Oracle documentation for advice
oracle.export.wt=${oracle.home}/bin/expdp ${oracle.system.user}/${oracle.system.password}@${oracle.service.name} SCHEMAS=${wt.pom.dbUser} DIRECTORY=wtbackup LOGFILE=expdp.log PARALLEL=4 DUMPFILE=wtschema_%U.dmp
oracle.import.wt=${oracle.home}/bin/impdp ${oracle.system.user}/${oracle.system.password}@${oracle.service.name} SCHEMAS=${wt.pom.dbUser} DIRECTORY=wtbackup LOGFILE=impdp.log PARALLEL=4 DUMPFILE=wtschema_%U.dmp
#wtschema.datapump.directory is the path *accessible from the oracle server* to the oracle backup directory.Because Oracle is likely to be on a different server than Windchill we can't assume that this is based on %{backup.dir}
wtschema.datapump.localpath=i:/wtbackup/wtbackup/oracle
cognos.datapump.localpath=i:/wtbackup/wtbackup/cognos
#End: This section only used if rdbms=oracle

apache.home.directory=I:\ptc\Windchill_9.0\Apache
#apache.start=net start Apache2
#apache.start=${apache.home.directory}/bin/Apache.exe
apache.start=${apache.home.directory}/bin/httpd.exe
#apache.stop=net stop Apache2
#apache.stop=taskkill /im Apache.exe /f
apache.stop=taskkill /im httpd.exe /f
apache.logs.delete=true


tomcat.home.directory=I:\ptc\Windchill_9.0\Tomcat
#tomcat.start=net start Tomcat
tomcat.start=${tomcat.home.directory}/bin/wttomcat_start.bat
#tomcat.stop=net stop Tomcat
tomcat.stop=${tomcat.home.directory}/bin/wttomcat_stop.bat
tomcat.logs.delete=true

########################################
#Windchill 9 options
########################################

#Cognos backup is currently *only* supported on Oracle
cognos.backup=false

#The only place I can find these is in a file called WTHOME\Reporting\configuration\cogstartup_20080103190637.xml which varies from machine to machine
cognos.username=wbradmin
cognos.password=wbradmin
cognos.stop=net stop "Cognos 8"
cognos.start=net start "Cognos 8"
oracle.export.cognos=${oracle.home}/bin/expdp ${oracle.system.user}/${oracle.system.password}@${oracle.service.name} SCHEMAS=${cognos.username} DIRECTORY=cognosbackup LOGFILE=expdp.log PARALLEL=4 DUMPFILE=cognosschema_%U.dmp
oracle.import.cognos=${oracle.home}/bin/impdp ${oracle.system.user}/${oracle.system.password}@${oracle.service.name} SCHEMAS=${cognos.username} DIRECTORY=cognosbackup LOGFILE=expdp.log PARALLEL=4 DUMPFILE=cognosschema_%U.dmp
#The logs will only be deleted if cognos.backup is set to true
cognos.logs.delete=true
cognos.home.directory=I:/backups/wtbackup/cognos
cognos.backup.files=logs/**/*.*
cognos.logs.directory=${cognos.home.directory}/logs

########################################
#Restore options
########################################
#This is the directory containing the backup that will be restored from
restore.source.dir=I:\ptc\Windchill_9.0\Windchill
#this will restore all backed up windchill config files, like wt,properties, site.xconf etc.
restore.config.files=true

#If false the filevaults will not be restored, *be careful* restoring filevaults deletes existing file vaults before copying backup.
filevaults.restore=true

:end

wtbackup.bat:

set WT_HOME=I:\ptc\Windchill_9.0\Windchill
set JAVA_HOME=I:\ptc\Windchill_9.0\Java
set PATH=%WT_HOME%\bin;%WT_HOME%\ant\bin;%JAVA_HOME%\bin;%PATH%

rem setting the Java heap is necessary when running listVaultFiles - if you get an OutofMemoryError then increase this value.
set ANT_OPTS=-Xmx512m

if "%1"=="" goto wtbackup
if "%1"=="restore" goto wtrestore
if "%1"=="test" goto wttest

:wtbackup
rem *****Activate one of the next 3 statements to perform a backup
rem ***Incremental backup of filevaults
call ant -f wtbackup.xml all -Dfilevaults.backup=incremental -Dbackup.dir.delete=false -Dwindchill.home.directory=%WT_HOME% -lib .

rem ***Full backup of filevaults
rem call ant -f wtbackup.xml all -Dfilevaults.backup=full -Dbackup.dir.delete=false -Dwindchill.home.directory=%WT_HOME% -lib .

rem ***No backup of filevaults
rem call ant -f wtbackup.xml all -Dfilevaults.backup=false -Dbackup.dir.delete=true -Dwindchill.home.directory=%WT_HOME% -lib .

rem ***To receive an email of the log file make sure you activate the next line
ant -f emaillog.xml -Dwindchill.home.directory=%WT_HOME% -lib .
goto end



:wtrestore
rem restore.source.dir is relative to wherever this script is being run from
rem wtschema.datapump.localpath is relative to the Oracle server
ant -f wtbackup.xml restore -Drestore.source.dir=I:\backups -Dwtschema.datapump.localpath=I:\backups\wtbackup.good\oracle -Drestore.config.files=true -Dwindchill.home.directory=%WT_HOME% -lib .
goto end


:wttest
rem ******** Various test scripts
rem call ant -f wtbackup.xml createOraDirectory -Doradirectory.user=wtremote -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml testOracleConnections -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml showLocalTimeFormat -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justWVS -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml removeUnreferencedFiles -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justMssql -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justWindchill -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justWindchillConf -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justWindchillDS -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml restoreLDAP -Dwindchill.home.directory=%WT_HOME% -lib . -Drestore.source.dir=D:\ptc9.1\backups\Not_quite_empty
rem call ant -f wtbackup.xml justOracle -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justApache -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justTomcat -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml justFileVaults -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml testmail -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml testbackup -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml listVaultFiles -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml testcmd -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml t12 -Dwindchill.home.directory=%WT_HOME% -lib .
rem call ant -f wtbackup.xml removeUnreferencedFiles -Dwindchill.admin.user=wcadmin -Dwindchill.admin.password=wcadmin -Dwindchill.fv.vault=defaultcachevault -DremoveUnreferencedFiles=true -Dwindchill.home.directory=%WT_HOME% -lib .


rem **** Writes the vaults to be backed up to ${windchill.home.directory}/logs/MountInfo.log. Requires Windchill to be running.
rem call ant -f wtbackup.xml mountInfo -Dwindchill.admin.user=wcadmin -Dwindchill.admin.password=wcadmin

:end


Объясните что такое Windchill DS?

Кстати в wtbackup.bat в подразделе :wtrestore я прописал путь откуда будет производиться восстановление, но программа удалила мою папку, создав свою, хотя у мя все настройки были на мою папку сделаны. Помогите решить данные проблемы. Заранее спасибо.
 
Последнее редактирование модератором:
  • Like
Реакции: spa
Статус
Закрыто для дальнейших ответов.
Верх