From 8ce0847393d499149c2ede375377d502ef558fe9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 4 Jan 2023 15:24:56 +0100 Subject: [PATCH] Add doc for occ trashbin:restore command Signed-off-by: Vincent Petry --- .../configuration_server/occ_command.rst | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/admin_manual/configuration_server/occ_command.rst b/admin_manual/configuration_server/occ_command.rst index cdc4b38f096..6086a424c19 100644 --- a/admin_manual/configuration_server/occ_command.rst +++ b/admin_manual/configuration_server/occ_command.rst @@ -1085,6 +1085,12 @@ Remove a certificate:: Trashbin -------- +:: + + trashbin + trashbin:cleanup [--all-users] [--] [...] Remove deleted files + trashbin:restore [--all-users] [--] [...] Restore deleted files + .. note:: This command is only available when the "Deleted files" app (``files_trashbin``) is enabled. @@ -1092,11 +1098,6 @@ Trashbin The ``trashbin:cleanup [--all-users] [--] [...]`` command removes the deleted files of the specified users in a space-delimited list, or all users if --all-users is specified. -:: - - trashbin - trashbin:cleanup [--all-users] [--] [...] Remove deleted files - This example removes the deleted files of all users:: sudo -u www-data php occ trashbin:cleanup --all-users @@ -1114,6 +1115,17 @@ This example removes the deleted files of users molly and freda:: Remove deleted files of molly Remove deleted files of freda +The ``trashbin:restore [--all-users] [--] [...]`` command restores the deleted files of the specified +users in a space-delimited list, or all users if --all-users is specified. + +This example restores the deleted files of all users:: + + sudo -u www-data php occ trashbin:restore --all-users + +This example restores the deleted files of users molly and freda:: + + sudo -u www-data php occ trashbin:restore molly freda + .. _user_commands_label: User commands