Difference between revisions of "CentOS 7.x Owncloud maintenance"
(Created page with "<yambe:breadcrumb self="Owncloud maintenance">CentOS_7.x_owncloud|Owncloud</yambe:breadcrumb> =CentOS 7.x Owncloud maintenance= ==Owncloud regular maintenance using cron scri...") |
m |
||
Line 17: | Line 17: | ||
==Remove deleted files from various users trashbin== | ==Remove deleted files from various users trashbin== | ||
<pre | To remove deleted files from trashbin '''of all users''' use: | ||
<pre> | |||
cd /opt/owncloud-10.0.10-4/apps/owncloud/htdocs | cd /opt/owncloud-10.0.10-4/apps/owncloud/htdocs | ||
sudo -u daemon /opt/owncloud-10.0.10-4/php/bin/php occ trashbin:cleanup | sudo -u daemon /opt/owncloud-10.0.10-4/php/bin/php occ trashbin:cleanup |
Revision as of 04:44, 20 November 2019
<yambe:breadcrumb self="Owncloud maintenance">CentOS_7.x_owncloud|Owncloud</yambe:breadcrumb>
CentOS 7.x Owncloud maintenance
Owncloud regular maintenance using cron script
For regular owncloud maintenance cron job create '/etc/cron.daily/owncloud-maintenance.sh' with
#!/bin/bash cd /opt/owncloud-10.1.0-1/apps/owncloud/htdocs sudo -u daemon /opt/owncloud-10.1.0-1/php/bin/php -f cron.php
Note in case of source based installation user name would perhaps be apache and not daemon. Also note that above example assumes bitnami stack based installation. For source based installation cd might be required to /var/www/html/owncloud folder. For large installations having several TB of data maintenance can go on for more than a day, in such cases run maintenance manually or via /etc/cron.weekly or /etc/cron.monthly instead.
Refer:
Remove deleted files from various users trashbin
To remove deleted files from trashbin of all users use:
cd /opt/owncloud-10.0.10-4/apps/owncloud/htdocs sudo -u daemon /opt/owncloud-10.0.10-4/php/bin/php occ trashbin:cleanup
Refer:
<yambe:breadcrumb self="Owncloud maintenance">CentOS_7.x_owncloud|Owncloud</yambe:breadcrumb>