Uploading the archive to the Server

The UploadPendingFiles scheduled process (see quartz-jobs.xml) periodically checks for pending archives and uploads them via WebDAV to the server specified in the url field of syncEvent.xml. SyncUtils.uploadExportFiles method loops through all of the files in the pending dir and uploads them to a directory based on the site's name, instance id, and the current year, month, and week number (1-5) - i.e. SOW/1/archive/2010/Jan/3. If necessary, it creates the archive directory using a WebDAV MKCOL method. 

If the WebDAVv server returns a 201 (created) or 204 (success) message after uploading the file, it moves the file to the "complete" directory. If the upload was not successful, it will make another attempt the next time the upload process is initiated.