# 22. Virtuoso Functions Guide - DAV_EXP

Chapter Contents | Prev | Next
Keyword Search:
www.openlinksw.com
docs.openlinksw.com
Book Home
Contents
Preface
Virtuoso Functions Guide
Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
dav add & update fun...
dav manipulation fun...
dav search functions
dav_exp
lfs_exp
serv_queue_top
vhost_define
vhost_remove
webdav users & group...
client_attr
connection_get
connection_id
connection_is_dirty
connection_set
connection_vars
connection_vars_set
dbname
ftp_get
ftp_ls
ftp_put
get_certificate_info
get_keyword
get_keyword_ucase
http
http_acl_get
http_body_read
http_client
http_client_ip
http_debug_log
http_enable_gz
http_file
http_flush
http_get
http_header
http_header_get
http_kill
http_listen_host
http_map_get
http_map_table
http_param
http_path
http_pending_req
http_physical_path
http_proxy
http_request_get
http_request_header
http_request_status
http_rewrite
http_root
http_url
http_value
http_xslt
ses_connect
ses_disconnect
ses_read_line
ses_write
tcpip_gethostbyaddr
tcpip_gethostbyname
vsp_calculate_digest
wsdl_import_udt
XML
XPATH & XQUERY
Functions Index

## DAV_EXP

Export a retrieved Web site to another WebDAV enabled server
WS.WS.DAV_EXP (in host varchar, in url varchar, in root varchar, in dst varchar);
Description

This function is used to export local content retrieved from a Web Robot Copy to the local file system.

Parameters
host – The target host name
url – start path on target
root – local WebDAV collection that contains the retrieved content
dst – absolute URL to the WebDAV folder to export content to
Return Types

The function returns a non-zero value (can be an error description) if an error occurred while exporting.

Errors

Error Code | Description
--- | ---
>=0 | success
-1 | The path (target of operation) is not valid
-2 | The destination (path) is not valid
-3 | Overwrite flag is not set and destination exists
-4 | The target is resource, but source is collection (in copy move operations)
-5 | Permissions are not valid
-6 | uid is not valid
-7 | gid is not valid
-8 | Target is locked
-9 | Destination is locked
-10 | Property name is reserved (protected or private)
-11 | Property does not exists
-12 | Authentication failed
-13 | Operation is forbidden (the authenticated user do not have a permissions for the action)
-14 | the target type is not valid
-15 | The umask is not valid
-16 | The property already exists
-17 | Invalid property value
-18 | no such user
-19 | no home directory

Examples
Exporting to the Filesystem

    WS.WS.LFS_EXP ('www.foo.com', '/help/', 'sites/www_foo_com', '/tmp/');
    WS.WS.DAV_EXP ('www.foo.com', '/help/', 'sites/www_foo_com',
      'http://www.mydrive.com:8990/DAV/sites/');

See Also

WS.WS.LFS_EXP()

DAV content add/update/delete functions

DAV content manipulation functions

DAV search functions

DAV user management functions