knebb
April 7, 2021, 7:18am
#1
Hi,
nothing really wrong here. Just trying to understand.
I am using the Debian cron. So I configured my OC 10.6 for using cron as documented here :
crontab -e
* * * * * /usr/bin/php -f /var/www/owncloud.domain.de/occ system:cron
The documentation states it should run every minute. Is this correct? Is this really needed?
What does “system:cron” do in detail? Does it start internal cjobs to be executed? Is it configurable which ones?
It is a really small installation with just a couple of users, so do I need this to be run every minute?
Thanks for bringing light in here.
/KNEBB
No, every 10-15 minutes is enough.
knebb
April 7, 2021, 9:26am
#3
Thanks!
Set it to */15
now.
What does it do there in detail?
/KNEBB
Cleaning up expired stuff in trash, shares etc.
$ /usr/bin/php occ background:queue:status
+--------+----------------------------------------------------+---------------------------+---------------+
| Job ID | Job | Last Run | Job Arguments |
+--------+----------------------------------------------------+---------------------------+---------------+
| 1 | OCA\Files\BackgroundJob\ScanFiles | 2021-04-07T09:50:01+00:00 | |
| 2 | OCA\Files\BackgroundJob\DeleteOrphanedItems | 2021-04-07T09:10:01+00:00 | |
| 3 | OCA\Files\BackgroundJob\CleanupFileLocks | 2021-04-07T09:50:01+00:00 | |
| 4 | OCA\Files\BackgroundJob\CleanupPersistentFileLocks | 2021-04-07T09:20:01+00:00 | |
| 5 | OCA\DAV\CardDAV\SyncJob | 2021-04-06T10:00:02+00:00 | |
| 6 | OCA\DAV\BackgroundJob\CleanProperties | 2021-04-07T09:50:01+00:00 | |
| 7 | OCA\Federation\SyncJob | 2021-04-07T09:50:01+00:00 | |
| 8 | OCA\Files_Sharing\DeleteOrphanedSharesJob | 2021-04-07T09:40:01+00:00 | |
| 9 | OCA\Files_Sharing\ExpireSharesJob | 2021-04-06T10:10:01+00:00 | |
| 10 | OCA\Files_Sharing\External\ScanExternalSharesJob | 2021-04-07T09:50:03+00:00 | |
| 11 | OCA\Files_Trashbin\BackgroundJob\ExpireTrash | 2021-04-07T09:50:03+00:00 | |
| 12 | OCA\Files_Versions\BackgroundJob\ExpireVersions | 2021-04-07T09:50:03+00:00 | |
| 13 | OCA\Market\CheckUpdateBackgroundJob | 2021-04-06T10:10:01+00:00 | |
| 15 | OC\Authentication\Token\DefaultTokenCleanupJob | 2021-04-07T09:50:03+00:00 | |
+--------+----------------------------------------------------+---------------------------+---------------+
2 Likes
system
Closed
July 6, 2021, 9:55am
#5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.