Node:Using synchronizing qualifiers, Previous:Synchronize qualifiers, Up:Synchronizing a Website
The simplest way to use the -synchronize command is to synchronize the entire website. This will cause WebPublish to search the copy of the website on the server, looking for files and directories that are no longer a part of the local copy of the website. When WebPublish finds a file or a directory on the server that is no longer a part of the local copy of the website, WebPublish will remove the file or directory from the server (unless the -prompt switch was included on the command line).
The following example will synchronize the entire website for the
personal
account.
webpublish --synchronize -a personal --prompt
If you want to synchronize part of the website on a server
then you can tell WebPublish the specific subdirectory
to synchronize.
webpublish --synchronize -a personal -d books
The example above will only synchronize the books directory. No other part of the website on the server will be synchronized. Any files and directories in the books directory that are no longer a part of the books directory in the local copy of the website will be removed.
If you only want to synchronize the individual directory, you can
tell WebPublish how many directory levels too traverse.
webpublish --synchronize -a personal -d books -D 1
The example above will only synchronize the books
directory.
WebPublish will not synchronize any subdirectories. If the
-depth (-D
) DATA option had been 2, one single level of each
subdirectory in the books
directory would have been synchronized.
Etc.