Dump/Restore applications

Applications can be downloaded from here.

There are specific dump/restore programs for Xythos WFS (which run as server administration applications) and then there are general WebDAV dump/restore programs that can be used with any WebDAV server.

WFSDump

WFSDump will dump the contents of Xythos WFS to the file system. It creates one XML file which describes the content and one file for each content resource found in the server. Run the utility pointing it at an empty directory. The xml file can be edited to change file locations, machine names etc.

You will need to modify the script files to point to right locations for XYTHOS_HOME and JDBC_DRIVER.

c:\xythos\wfs-4.0.48\utils> WFSDump c:\temp\dump

-------------------------
WFSDump (Version 1.0.001)
-------------------------
Starting dump at 20-Aug-2004 13:52:17.821
2004-08-20 17:52:19.571 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Session Manager (Version 1.4.3.003)
2004-08-20 17:52:19.586 [] INFO 10 com.sas.wfs.SASSessionManager - Property file loaded from c:\xythos\wfs-4.0.48\saswfs.properties
2004-08-20 17:52:19.602 [] INFO 10 com.sas.wfs.SASSessionManager - Virtual server name [D2001]
2004-08-20 17:52:19.602 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Metadata Server domain [RD]
2004-08-20 17:52:19.602 [] INFO 10 com.sas.wfs.SASSessionManager - Xythos WebDAV Server domain [RD]
2004-08-20 17:52:19.602 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Metadata Server address [localhost:9999]
2004-08-20 17:52:19.618 [] INFO 10 com.sas.wfs.SASSessionManager - User directory base [/sasdav/Users]
Dumped resource /sasdav
...
...
...
10 resources dumped.
Completed dump at 20-Aug-2004 13:52:20.977
Press any key to continue . . .

WFSRestore

WFSRestore will restore the contents of the dump file (created by WFSDump or WebDAVDump) to the Xythos WFS. If you want the file locations or other properties changed, edit the XML file before restoring (eg. file locations, machine names etc.)

You will need to modify the script files to point to right locations for XYTHOS_HOME and JDBC_DRIVER.

c:\xythos\wfs-4.0.48\utils> WFSRestore c:\temp\dump

----------------------------
WFSRestore (Version 1.0.001)
----------------------------
Restoring dump created from virtual server "D2001" to "D2001"
Proceed? [yes/no]
yes
2004-08-20 17:54:54.227 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Session Manager (Version 1.4.3.003)
2004-08-20 17:54:54.243 [] INFO 10 com.sas.wfs.SASSessionManager - Property file loaded from c:\xythos\wfs-4.0.48\saswfs.properties
2004-08-20 17:54:54.243 [] INFO 10 com.sas.wfs.SASSessionManager - Virtual server name [D2001]
2004-08-20 17:54:54.258 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Metadata Server domain [RD]
2004-08-20 17:54:54.258 [] INFO 10 com.sas.wfs.SASSessionManager - Xythos WebDAV Server domain [RD]
2004-08-20 17:54:54.258 [] INFO 10 com.sas.wfs.SASSessionManager - SAS Metadata Server address [localhost:9999]
2004-08-20 17:54:54.274 [] INFO 10 com.sas.wfs.SASSessionManager - User directory base [/sasdav/Users]
Restored resource /sasdav
...
...
...
10 resources restored.
Restore completed at 20-Aug-2004 17:54:54.743
Press any key to continue . . .

WebDAVDump

WebDAVDump will dump the contents of a WebDAV server saving diretories, content and properties. It creates one XML file which describes the content and one file for each content resource found in the server. Run the utility pointing it at an empty directory. The xml file can be edited to change file locations, machine names, domain names etc.

You will need to modify the script files to point to the correct jar locations.

WebDAVDump http://localhost:8200/foo c:\temp\testWFSDump

---------------------------
WebDAVDump (Version 1.0.001)
---------------------------
Starting dump at 17-Sep-2004 15:05:10.344
Dumped resource /foo/
Dumped resource /foo/tests/
...
Dumped resource /foo/tests/sasdav/sas/publish/s2ce0731/top_p_r2.png
25 resources dumped.
Completed dump at 17-Sep-2004 15:05:11.672
Press any key to continue . . .

WebDAVRestore

WebDAVRestore will restore the contents of the dump file (created by WFSDump or WebDAVDump) to the WebDAV server. If you want the file locations or other properties changed, edit the XML file before restoring (eg. file locations, machine names etc.)

You will need to modify the script files to point to the correct jar location.

WebDAVRestore c:\temp\testWFSDump http://localhost:8200

------------------------------
WebDAVRestore (Version 1.0.001)
------------------------------
Restoring dump created from virtual server "http://localhost:8200/foo"
Proceed? [yes/no]
yes
Starting restore at 17-Sep-2004 15:12:38.719
Restored /foo/
Restored /foo/tests/
...
Restored /foo/tests/sasdav/sas/publish/s2ce0731/top_p_r2.png
25 resources restored.
Restore completed at 17-Sep-2004 15:12:39.782
Press any key to continue . . .