User Tools

Site Tools


linux:owncloud:trashbin_cleanup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:owncloud:trashbin_cleanup [2022/02/05 16:17] rpleckolinux:owncloud:trashbin_cleanup [2022/02/05 16:18] (current) rplecko
Line 10: Line 10:
 </code> </code>
 The trashbin:cleanup command removes the deleted files of all users, or you may specify certain users in a space-delimited list. This example removes all the deleted files of all users: The trashbin:cleanup command removes the deleted files of all users, or you may specify certain users in a space-delimited list. This example removes all the deleted files of all users:
 +<code>
 sudo -u www-data php occ trashbin:cleanup sudo -u www-data php occ trashbin:cleanup
 Remove all deleted files Remove all deleted files
Line 18: Line 18:
  user3  user3
  user4  user4
 +</code>
 This example removes the deleted files of user2 and user4: This example removes the deleted files of user2 and user4:
 +<code>
 sudo -u www-data php occ trashbin:cleanup user2 user4 sudo -u www-data php occ trashbin:cleanup user2 user4
  Remove deleted files of user2  Remove deleted files of user2
  Remove deleted files of user4  Remove deleted files of user4
 +</code>
 trashbin:expire deletes only expired files according to the trashbin_retention_obligation setting in config.php. The default setting is auto, which keeps files in the Trashbin for 30 days, then deletes the oldest files as space is needed to keep users within their storage quotas. Files may not be deleted if the space is not needed. trashbin:expire deletes only expired files according to the trashbin_retention_obligation setting in config.php. The default setting is auto, which keeps files in the Trashbin for 30 days, then deletes the oldest files as space is needed to keep users within their storage quotas. Files may not be deleted if the space is not needed.
  
 The default is to delete expired files for all users, or you may list users in a space-delimited list: The default is to delete expired files for all users, or you may list users in a space-delimited list:
 +<code>
 sudo -u www-data php occ trashbin:cleanup user1 user2 sudo -u www-data php occ trashbin:cleanup user1 user2
  Remove deleted files of user1  Remove deleted files of user1
  Remove deleted files of user2  Remove deleted files of user2
 +</code>
  
linux/owncloud/trashbin_cleanup.1644077850.txt.gz · Last modified: 2022/02/05 16:17 by rplecko