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/configuration_server/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
@@ -759,18 +759,23 @@ to synchronize federated servers::
759
759
File operations
760
760
---------------
761
761
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.
774
779
775
780
.. _occ_files_scan_label:
776
781
@@ -911,6 +916,8 @@ In this case no sub-directory is created and all files will appear directly in t
911
916
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.
914
921
915
922
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