Windows Network Drive (WND)

Integrate Windows and Samba/CIFS shared network drives as external storages. For details please see the Windows Network Drive (WND) documentation.

The wnd commands configure the WND app.

wnd
 wnd:listen                 Listen to smb changes and store notifications for later processing
 wnd:process-queue          Process the notifications stored by the wnd:listen command
 wnd:set-service-account    Sets the service account for the target mount point (deprecated)

Please see the Windows Network Drive Notifications for how to properly setup wnd:listen and wnd:process-queue.

Configure the Listener

Listen to smb changes and store notifications for later processing in the database

sudo -u www-data php occ wnd:listen [options] [--] <host> <share> <username> [<password>]

Arguments

host

The hostname or IP address of the server to listen to

share

The share inside the host to listen to for changes

username

The username that will be used to connect to the share

password

The user’s password (will be asked for if it isn’t provided)

Options

-p,
--path=PATH

The path inside the share to watch for changes [default: ""]

--password-file=PASSWORD-FILE

The file containing the password for the account to be used to listen

--password-trim

Trim blank characters from the password

--unbuffering-option=UNBUFFERING-OPTION

Force the usage of that unbuffering option for the underlying smbclient command. Possible options are either "auto", "pty" or "stdbuf" [default: "auto"]

--output[=OUTPUT]

The output format to use (plain, json or json_pretty). [default: "plain"]

Process Notifications

Process the notifications stored by the wnd:listen command

sudo -u www-data php occ wnd:process-queue [options] [--] <host> <share>

Arguments

host

The server whose notifications will be processed

share

The share whose notifications will be processed

Options

--output[=OUTPUT]

The output format to use (plain, json or json_pretty). [default: "plain"]

Set the Service Account

This command is deprecated starting with ownCloud 10.8. All mount options marked as password are now encrypted by default. Existing old settings are migrated automatically.

Sets the service account for the target mount point. You’ll be asked for the password of the service account.

sudo -u www-data php occ wnd:set-service-account [options] [--] <mount-id>

Please see the occ documentation of files_external:list to get the required mount-id.

Arguments

mount-id

ID of the mount point. Use "occ files_external:list --short" to find it

Options

--output[=OUTPUT]

The output format to use (plain, json or json_pretty). [default: "plain"]