
synchronizing the entire site or selected files within a site. Direction: This menu includes three options. Choose between putting newer files to the remote, getting newer files from remote, or getting and putting newer files. It's important to note that the synchronization process transfers only the newest files. This assures that your remote or local files are consistently updated based on the newest possible files from the respective computer. Delete remote files not on local drive: Select this option to delete the files on the destination site that don't have counterparts on the origin site. This check box is disabled if you select the Get and Put newer files option. Because I've uploaded only the index.htm file and associated images, I'll choose the Entire "Dorknozzle" Site option from the Synchronize menu, choose the Put Newer Files to Remote option from the Direction list, and click Preview. Dreamweaver then scans the folder and file structure on both the local and remote computers, compares the two, and then presents a list in the Synchronize window, similar to Figure 4.28, of newer files that need to be uploaded to the remote computer. Figure 4.28. Dreamweaver presents a list of newer files that need to be transferred. [View full size image] As you can see from the callouts in Figure 4.28, the Synchronize window includes numerous features for managing the synchronization of files including: Files: This label simply displays a count of files that will be updated. Action column: Based on the Direction you picked from the Synchronize Files dialog, this column displays either a Get or Put text label and associative icon. Furthermore, if you mark files to be ignored or deleted, this column displays the associative icon and text label. File column: Displays the filename that will be updated. Status column: Displays the status of the file whose properties you decide to manipulate using the button bar in the bottom-left corner of the window. Show all files: Displays all files regardless of synchronization necessity. Get: When a file's action has been changed to Ignore, click this button to return the action to Get. Put: When a file's action has been changed to Ignore, click this button to return the action to Put. Mark for Deletion: Marks a specific file for deletion. Ignore: Changes the action for a file from Get or Put to Ignore. This allows you to change your mind about a file at the last minute without having to cancel out of the Synchronize window. Mark as Synchronized: Sets the action of a file to Synchronized and immediately removes it from the File list. Compare: Uses the "diff" program you specify in File Compare category in the Preferences window to compare a particular file on the remote server with one on the local server. More on setting up a file comparison program is provided in Chapter 5, "Defining Preferences." When you're happy with the options in the Synchronize window, click OK to begin the update. Immediately, the Synchronize window closes and the Background File Activity window opens displaying the status of the transfer. When the update completes, click the Close button to close the Background File Activity window. To see the successful transfer of files, try running the site synchronization feature one more time. This time when you run it, a dialog stating that a synchronization is not necessary appears similar to Figure 4.29. Figure 4.29. If no synchronization is necessary, a dialog stating that appears.