See also entry in DESCRIPTION file
Usage: purge_database [options] database
This script will purge a PDM Database by running trail files.
It will first create a listing of all models to purge and then
restart pdm and purge them in not too large batches.
It will first purge all drawings, then all layouts, then all
assemblies and finally all parts.
Use a batchsize of 1 if you have a very large database with a
lot of instances. Otherwise Pro/PDM will first create the entire
filelisting with every purge batch, which takes a long time.
options: -h => this help screen
-p PATH => PDM path (needed with -c option)
(default: /srv/pdmdata/fng_ams)
-b SIZE => set batch size to SIZE
(default: 100)
-a => Purge all revisions
(default: only Unused revisions)
-m x => Purge only models x, where x is
d = drawings
l = layouts
a = assemblies
p = parts
(default is all these models)
xxx = all models with extension xxx.
-n x => Number of revisions to retain
(default: 1)
-r REL => Only purge release level REL.
(default is all). If REL is a file
it will get the release level from
the file (in case there are spaces
in the release level name).
-f => Force start of Pro/PDM
-c => count size before and afterwards.
-d => disable checking of conflicts (pdm3.4)
-x => do not process sub-folders (pdm3.4)
-e xxx => extra options, with xxx is:
cmd YYY = Use YYY as pdm start command
env YYY = Use environment YYY
(company specific profile)
-q => Run quietly
Example:
% /srv/usr/FICO/scripts/purge_database -afc -m prt -m inf -b 1 PURCHASE
Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl
################################################################################
# History:
#
# 000306 Added Total nr. of purged revisions.
# 990623 Added cleanup
# 980903 Now using check_dbasenr to determine row nr of dbase.
# 980710 Getting dbase nr now performed with script check_dbasenr
# 980708 Added -d and -x option.
# 980624 trailfile names now no longer then 25 characters to prevent illegal
# trailfile names.
# 980605 Fixed bail out of script when no release levels found.
# 980529 Altered -r option to look for file. Added -s option.
# 980528 Added -n and -r options. Only listing directory names in PDM_PATH.
# 980325 Added -m option and special case for batch_size = 1.
# first version march 1998
#
################################################################################
|