Skip to content

Commit dc91508

Browse files
authored
Merge pull request #9521 from nextcloud/occ-trashbin-restore
Add doc for occ trashbin:restore command
2 parents 790f8b0 + 8ce0847 commit dc91508

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

admin_manual/configuration_server/occ_command.rst

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,18 +1085,19 @@ Remove a certificate::
10851085
Trashbin
10861086
--------
10871087

1088+
::
1089+
1090+
trashbin
1091+
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
1092+
trashbin:restore [--all-users] [--] [<user_id>...] Restore deleted files
1093+
10881094
.. note::
10891095
This command is only available when the "Deleted files" app
10901096
(``files_trashbin``) is enabled.
10911097

10921098
The ``trashbin:cleanup [--all-users] [--] [<user_id>...]`` command removes the deleted files of the specified
10931099
users in a space-delimited list, or all users if --all-users is specified.
10941100

1095-
::
1096-
1097-
trashbin
1098-
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
1099-
11001101
This example removes the deleted files of all users::
11011102

11021103
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::
11141115
Remove deleted files of molly
11151116
Remove deleted files of freda
11161117

1118+
The ``trashbin:restore [--all-users] [--] [<user_id>...]`` command restores the deleted files of the specified
1119+
users in a space-delimited list, or all users if --all-users is specified.
1120+
1121+
This example restores the deleted files of all users::
1122+
1123+
sudo -u www-data php occ trashbin:restore --all-users
1124+
1125+
This example restores the deleted files of users molly and freda::
1126+
1127+
sudo -u www-data php occ trashbin:restore molly freda
1128+
11171129
.. _user_commands_label:
11181130

11191131
User commands

0 commit comments

Comments
 (0)