How can I export/import from/to a mapped/shared drive when Artifactory is running as a Windows Service

How can I export/import from/to a mapped/shared drive when Artifactory is running as a Windows Service

AuthorFullName__c
JFrog Support
articleNumber
000003911
ft:sourceType
Salesforce
FirstPublishedDate
2017-06-18T10:09:05Z
lastModifiedDate
2025-05-18
VersionNumber
4

Windows Services have no knowledge about user-specific, shared network drives (mounted with a drive letter). Instead, Microsoft recommends that you use a Universal Name Convention (UNC) to denote the path to the shared drive via an application. Currently, the Artifactory UI will not allow you to specify a UNC path via the export/import screen. This is a known issue for which current status information is available HERE.

Until this issue is resolved, here’s a workaround:

1.Use the REST API to export/import. Using the REST, you can provide the escaped version of the UNC path in the payload JSON. For example, to export, you could run: 

curl -XPOST -u<username>:<password> http://server_host:8081/artifactory/api/export/system -H "Content-Type: application/json" -T export.json
Where export.json contains a path that looks like this:
{
  "exportPath" : "\\\\10.0.0.1\\share-name"
}
Note: There are four preceding slashes, plus two more between the IP and the share name.

2. Use Windows symlinks to symlink a UNC path as a local directory in one of your local drives. This solution is described in greater detail HERE.