From 8d9bd892c6dad7db8c82c52c99121c9095a574c0 Mon Sep 17 00:00:00 2001 From: Camila Date: Tue, 7 Feb 2023 17:27:31 +0100 Subject: [PATCH] Add note about the occ files:transfer-ownership command. See issue nextcloud/server#15410. Signed-off-by: Camila --- admin_manual/configuration_server/occ_command.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index d24f19167..a3fb6ee40 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -792,6 +792,9 @@ before removing a user:: The transferred files will appear inside a new sub-directory in the destination user's home. +.. note:: + The user's folder must exist in the data directory: the command ``occ files:transfer-ownership`` will only work after the ``destination-user`` has logged in for the first time. Their first login initializes the user's file system. + If the destination user has no files at all (empty home), it is possible to also transfer all the source user's files by passing ``--move``:: sudo -u www-data php occ files:transfer-ownership --move