Node:Adding an excluded publish path, Next:Removing an excluded publish path, Up:Excluding Publish Paths
To exclude a file or a directory from being published by
WebPublish, you must add a record to the publish
database file.
To add a new record to the publish
database file, you must
specify the file or directory path using the -path (-P)
DATA option.
The following example will prevent WebPublish from publishing the
file website.project
when WebPublish is publishing the
personal account.
webpublish --add -F publish -a personal -P /home/mydir/mysite/website.project
The excluded file or directory path must be a full path. Also,
the excluded path is only valid for the specific account. When a
website is published to more than one server, each account that
is used to publish the website must have a record for the
excluded path in the publish
database file.
NOTE: The records in the publish
database file cannot be
changed. If you need to change a record in the publish
database
file, add a new record with the new information. Then you can
remove the old record with the old information.