mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Add doc for occ trashbin:restore command
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
@@ -1085,6 +1085,12 @@ Remove a certificate::
|
||||
Trashbin
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
trashbin
|
||||
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
|
||||
trashbin:restore [--all-users] [--] [<user_id>...] 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] [--] [<user_id>...]`` 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] [--] [<user_id>...] 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] [--] [<user_id>...]`` 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
|
||||
|
||||
Reference in New Issue
Block a user