Home Page : Downloads : Web Site Publisher : FAQ : Configure preserve file?

www.cryer.co.uk
Brian Cryer's Web Resources

Web Site Publisher

FAQ: How to ensure that a particular file is never overwritten when a website is published?

With Web Site Publisher, from version 1.6, it is possible to configure some files to be preserved and not overwritten when publishing, even if a newer version exists locally.

To ensure that a particular file is never overwritten (or deleted) when a website is published:

  1. You must be using Web Site Publisher version 1.6 (or later).
  2. In Web Site Publisher, double click on the website to bring up its properties.
  3. There is an arrow button on the right of the folder list, click on the right arrow until you see a tab called "Files".
  4. On the "Files" tab there are three further tabs, the one you want is "Exclusions", which will be the tab initially selected.
  5. Enter into the list under the title "File" the name of the file that you want left. You could for example use "*.txt" to exclude all text files, but if it is a single file you want preserved then just enter its name.
  6. Under the title "On Server" select "Ignore". ("Delete" would tell WSP to delete the file, "Ignore" means it won't overwrite it and won't delete it.)
  7. 6. Click [Save]