Skip to content

Commit 3ae7a52

Browse files
authored
Merge pull request #12387 from nextcloud/fix/admin/occ-files-namespace
fix(admin): Update commands for `files` namespace
2 parents 52def94 + 9a60c54 commit 3ae7a52

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

admin_manual/occ_command.rst

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -773,18 +773,23 @@ to synchronize federated servers::
773773
File operations
774774
---------------
775775

776-
``occ`` has three commands for managing files in Nextcloud::
777-
778-
files
779-
files:cleanup Cleanup filecache
780-
files:repair-tree Try and repair malformed filesystem tree structures
781-
files:scan Rescan filesystem
782-
files:scan-app-data Rescan the AppData folder
783-
files:transfer-ownership All files' and folders' ownerships are moved to another
784-
user. Outgoing shares are moved as well.
785-
Incoming shares are not moved by default because the
786-
sharing user holds the ownership of the respective files.
787-
There is however an option to enable moving incoming shares.
776+
Available ``occ`` commands for the ``files`` namespace::
777+
778+
files:cleanup cleanup filecache
779+
files:copy Copy a file or folder
780+
files:delete Delete a file or folder
781+
files:get Get the contents of a file
782+
files:move Move a file or folder
783+
files:object:delete Delete an object from the object store
784+
files:object:get Get the contents of an object
785+
files:object:put Write a file to the object store
786+
files:put Write contents of a file
787+
files:recommendations:recommend
788+
files:reminders List file reminders
789+
files:repair-tree Try and repair malformed filesystem tree structures
790+
files:scan rescan filesystem
791+
files:scan-app-data rescan the AppData folder
792+
files:transfer-ownership All files and folders are moved to another user - outgoing shares and incoming user file shares (optionally) are moved as well.
788793

789794
.. _occ_files_scan_label:
790795

@@ -925,6 +930,8 @@ In this case no sub-directory is created and all files will appear directly in t
925930
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::
926931

927932
sudo -u www-data php occ files:transfer-ownership --path="path_to_dir" <source-user> <destination-user>
933+
934+
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.
928935

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

0 commit comments

Comments
 (0)