Merge pull request #9616 from nextcloud/add-note-occ

Add note about the occ files:transfer-ownership command.
This commit is contained in:
Daphne Muller
2023-02-08 09:34:27 +01:00
committed by GitHub

View File

@@ -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 <source-user> <destination-user>