Merge pull request #7631 from nextcloud/backport/7606/stable23

[stable23] Transfer incoming shares
This commit is contained in:
Christoph Wurst 2021-11-25 14:32:45 +01:00 committed by GitHub
commit 21803f46ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -750,12 +750,16 @@ It is also possible to transfer only one directory along with it's contents. Thi
sudo -u www-data php occ files:transfer-ownership --path="path_to_dir" <source-user> <destination-user>
In case the incoming shares must be transferred as well, use the argument ``--transfer-incoming-shares``::
In case the incoming shares must be transferred as well, use the argument ``--transfer-incoming-shares`` with ``0`` or ``1`` as parameters ::
sudo -u www-data php occ files:transfer-ownership --transfer-incoming-shares=1 --path="path_to_dir" <source-user> <destination-user>
As an alternative, the system configuration option ``transferIncomingShares`` in config.php can be set to ``true`` to always transfer incoming shares.
The command line option ``--transfer-incoming-shares`` overwrites the config.php option ``transferIncomingShares``. For example, ``'transferIncomingShares => true`` can be overwritten by: ::
sudo -u www-data php occ files:transfer-ownership --transfer-incoming-shares=0 <source-user> <destination-user>
Users may also transfer files or folders selectively by themselves.
See `user documentation <https://docs.nextcloud.com/server/latest/user_manual/en/files/transfer_ownership.html>`_ for details.