Skip to content

Commit e06e13f

Browse files
authored
Merge pull request #12392 from nextcloud/backport/12387/stable30
[stable30] fix(admin): Update commands for `files` namespace
2 parents bdd7f87 + e9cc268 commit e06e13f

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

admin_manual/configuration_server/occ_command.rst

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -759,18 +759,23 @@ to synchronize federated servers::
759759
File operations
760760
---------------
761761

762-
``occ`` has three commands for managing files in Nextcloud::
763-
764-
files
765-
files:cleanup Cleanup filecache
766-
files:repair-tree Try and repair malformed filesystem tree structures
767-
files:scan Rescan filesystem
768-
files:scan-app-data Rescan the AppData folder
769-
files:transfer-ownership All files' and folders' ownerships are moved to another
770-
user. Outgoing shares are moved as well.
771-
Incoming shares are not moved by default because the
772-
sharing user holds the ownership of the respective files.
773-
There is however an option to enable moving incoming shares.
762+
Available ``occ`` commands for the ``files`` namespace::
763+
764+
files:cleanup cleanup filecache
765+
files:copy Copy a file or folder
766+
files:delete Delete a file or folder
767+
files:get Get the contents of a file
768+
files:move Move a file or folder
769+
files:object:delete Delete an object from the object store
770+
files:object:get Get the contents of an object
771+
files:object:put Write a file to the object store
772+
files:put Write contents of a file
773+
files:recommendations:recommend
774+
files:reminders List file reminders
775+
files:repair-tree Try and repair malformed filesystem tree structures
776+
files:scan rescan filesystem
777+
files:scan-app-data rescan the AppData folder
778+
files:transfer-ownership All files and folders are moved to another user - outgoing shares and incoming user file shares (optionally) are moved as well.
774779

775780
.. _occ_files_scan_label:
776781

@@ -911,6 +916,8 @@ In this case no sub-directory is created and all files will appear directly in t
911916
It is also possible to transfer only one directory along with its contents. This can be useful to restructure your organization or quotas. The ``--path`` argument is given as the path to the directory as seen from the source user::
912917

913918
sudo -u www-data php occ files:transfer-ownership --path="path_to_dir" <source-user> <destination-user>
919+
920+
Incoming shares are not moved by default because the sharing user holds the ownership of the respective files. There is however an option to enable moving incoming shares.
914921

915922
In case the incoming shares must be transferred as well, use the argument ``--transfer-incoming-shares`` with ``0`` or ``1`` as parameters ::
916923

0 commit comments

Comments
 (0)