Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,17 @@ This command is useful before removing users.

[width="100%",cols="35%,70%",]
|===
| `--path=[PATH]` | selectively provide the path to transfer. +
| `--path=[PATH]` | selectively provide the path to transfer. +
For example --path="folder_name"
| `-s, +
--accept-skipped-shares` | always confirm to continue in case of skipped shares.
--accept-skipped-shares` | always confirm to continue in case of skipped shares.
| `--destination-use-user-folder` | transfer directly to top-level user folder, +
operation only possible if destination user +
never logged in and command aborts otherwise.
|===

For example, to move all files from `<source-user>` to `<destination-user>`, use the following command:

For example, to move all files from `<source-user>` to `<destination-user>` transfer folder, use the following command:

[source,console,subs="attributes+"]
----
Expand All @@ -281,8 +285,8 @@ For example, to move all files from `<source-user>` to `<destination-user>`, use
<destination-user>
----

You can also move a limited set of files from `<source-user>` to `<destination-user>` by making use of the `--path` switch, as in the example below.
Ownership of `folder/to/move` and all files and folders which it contains will be transferred to `<destination-user>`.
You can also move a limited set of files from `<source-user>` to `<destination-user>` transfer folder by making use of the `--path` switch, as in the example below.
Ownership of `folder/to/move` and all files and folders which it contains will be transferred to `<destination-user>` transfer folder.

[source,console,subs="attributes+"]
----
Expand All @@ -292,6 +296,17 @@ Ownership of `folder/to/move` and all files and folders which it contains will b
<destination-user>
----

If the entire user folder of `<source-user>` needs to be migrated to `<destination-user>` user folder, use the `--destination-use-user-folder` switch, as in the example below.
The destination user needs to be created but never log in, we recommend using owncloud maintenance mode for this operation.

[source,console,subs="attributes+"]
----
{occ-command-example-prefix} files:transfer-ownership \
--destination-use-user-folder \
<source-user> \
<destination-user>
----

Please keep the following in mind when using this command:

. The directory provided to the `--path` switch *must* exist inside `data/<source-user>/files`.
Expand Down