Dump/Restore applications

WebDAVDump

WebDAVDump will dump the contents of a WebDAV server saving directories, content and properties. It creates one ZIP file that contains a file named WFSDump.xml which describes the content and one file for each content resource found in the server. Run the utility by entering the name of the ZIP file you wish for it to create and point it to the directory you would like the ZIP file to be created in.

You will need to place the script in the <SAS_CONFIG>\Lev1\Web\Utilities directory.

For Windows: WebDAVDump92.bat http://server:port/SASContentServer/repository/default/sasfolders/<folder> <user> <password> <path to zip file>
Example: WebDAVDump92.bat http://myserver:8080/SASContentServer/repository/default/sasfolders/myfolder sasadm@saspw mypassword C:\mydump.zip

NOTE: If you are trying to dump a directory that has spaces in its name, you will need to put quotes around the whole path.  For example:
WebDAVDump92.bat "http://myserver:8080/SASContentServer/repository/default/sasfolders/my folder name" sasadm@saspw mypassword C:\mydump.zip


For UNIX: WebDAVDump92.sh http://server:port/SASContentServer/repository/default/sasfolders/<folder> <user> <password> <path to zip file>
Example: WebDAVDump92.sh http://myserver:8080/SASContentServer/repository/default/sasfolders/myfolder sasadm@saspw mypassword /usr/mydump.zip


WebDAVRestore

WebDAVRestore will restore the contents of the dump ZIP file (created by WFSDump or WebDAVDump) to the WebDAV server. Run the utility by pointing it to the dump ZIP file.

You will need to place the script in the <SAS_CONFIG>\Lev1\Web\Utilities directory.

For Windows: WebDAVRestore92.bat http://server:port/SASContentServer/repository/default/sasfolders/<folder> <user> <password> <path to zip file>
Example: WebDAVRestore92.bat http://myserver:8080/SASContentServer/repository/default/sasfolders/myfolder sasadm@saspw mypassword C:\mydump.zip

NOTE: If you are trying to dump a directory that has spaces in its name, you will need to put quotes around the whole path.  For example:
WebDAVDump92.bat "http://myserver:8080/SASContentServer/repository/default/sasfolders/my folder name" sasadm@saspw mypassword C:\mydump.zip


For UNIX: WebDAVRestore92.sh http://server:port/SASContentServer/repository/default/sasfolders/<folder> <user> <password> <path to zip file>
Example: WebDAVRestore92.sh http://myserver:8080/SASContentServer/repository/default/sasfolders/myfolder sasadm@saspw mypassword /usr/mydump.zip

 

Command Prompt Output

For troubleshooting purposes, you may find it very helpful to pipe the command window output to a file.  To do this, add > OutputFileName to the command.

For example: WebDAVDump92.bat http://myserver:8080/SASContentServer/repository/default/sasfolders/myfolder sasadm@saspw mypassword C:\mydump.zip > C:\WebDAVDump_output.txt