Node:Using publishing qualifiers, Next:, Previous:Publish qualifiers, Up:Publishing a Website



Using publishing qualifiers

The simpliest way to use WebPublish is to let the utility select the entire website for publication. When WebPublish selects the entire website for publication, each file in the local copy of the website is examined to see if it is current on the remote server. Any files and directories that are not current on the server will be transferred by WebPublish. The following example will select the entire personal account's website for publication.

webpublish --publish -a personal

If you only want to publish jpg files, then you can use the -extension (-e) qualifier. The --extension qualifier will tell WebPublish to select the files with the specified file extension. The following example will publish all of the jpg files in the personal account.

webpublish --publish -a personal -e jpg

The -directory (-d) qualifier can be used to select a subdirectory in the account's website to publish. The specified directory and all of its subdirectories will be selected for publication. The following example will publish the books/biography directory in the personal account.

webpublish --publish -a personal -d books/biography

The -depth (-D) qualifier can be used to limit the number of subdirectories that are published. If you only want to publish the files that are in the books directory, for example, you can use the following:

webpublish --publish -a personal -D 1 -d books

The example above will tell WebPublish to publish the single directory level that begins at the directory books.