You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin_manual/occ_command.rst
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -773,18 +773,23 @@ to synchronize federated servers::
773
773
File operations
774
774
---------------
775
775
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.
788
793
789
794
.. _occ_files_scan_label:
790
795
@@ -925,6 +930,8 @@ In this case no sub-directory is created and all files will appear directly in t
925
930
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::
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.
928
935
929
936
In case the incoming shares must be transferred as well, use the argument ``--transfer-incoming-shares`` with ``0`` or ``1`` as parameters ::
0 commit comments