Skip to content

Commit 1e8e5f4

Browse files
authored
Merge pull request #9523 from nextcloud/backport/9521/stable24
[stable24] Add doc for occ trashbin:restore command
2 parents 5c8c1ff + 11a8d72 commit 1e8e5f4

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
@@ -1050,18 +1050,19 @@ Remove a certificate::
10501050
Trashbin
10511051
--------
10521052

1053+
::
1054+
1055+
trashbin
1056+
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
1057+
trashbin:restore [--all-users] [--] [<user_id>...] Restore deleted files
1058+
10531059
.. note::
10541060
This command is only available when the "Deleted files" app
10551061
(``files_trashbin``) is enabled.
10561062

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

1060-
::
1061-
1062-
trashbin
1063-
trashbin:cleanup [--all-users] [--] [<user_id>...] Remove deleted files
1064-
10651066
This example removes the deleted files of all users::
10661067

10671068
sudo -u www-data php occ trashbin:cleanup --all-users
@@ -1079,6 +1080,17 @@ This example removes the deleted files of users molly and freda::
10791080
Remove deleted files of molly
10801081
Remove deleted files of freda
10811082

1083+
The ``trashbin:restore [--all-users] [--] [<user_id>...]`` command restores the deleted files of the specified
1084+
users in a space-delimited list, or all users if --all-users is specified.
1085+
1086+
This example restores the deleted files of all users::
1087+
1088+
sudo -u www-data php occ trashbin:restore --all-users
1089+
1090+
This example restores the deleted files of users molly and freda::
1091+
1092+
sudo -u www-data php occ trashbin:restore molly freda
1093+
10821094
.. _user_commands_label:
10831095

10841096
User commands

0 commit comments

Comments
 (0)