Cron job for

robot381

Cadet
Joined
Mar 5, 2021
Messages
4
Hi,

I'm a super beginner, only set up TrueNAS a few days ago and experimenting with different options.

I have set up a NextCloud using plugin, and one of the things I wanted to achieve was an alternative to google photos.
Because setting up preview was taking a god awful time, especially since I have over 5000+ photos accumulated over 10 years, I'm trying to use "preview generator" application on NextCloud (https://github.com/rullzer/previewgenerator)

On the installation note:

  1. Install the app
  2. Enable the app
  3. Run ./occ preview:generate-all once after installation.
  4. Add a (system) cron job for ./occ preview:pre-generate
  • I run it every 10 minutes

I achieved up to No. 3 stage (well, it is currently running. It is also taking a while, but it's slowly progressing!)
But I can't figure out how to do no. 4 of the instruction.

For Clarification, it says a system cron job, but my NextCloud is running in Jail (plugin). I'm not sure if this piece of information is useful.

How do I go about setting this up?
I want to run it once a day at midnight, so I'm guessing that would be

1 0 * * *

this. but where do i use this information?

Thank you so much for your help!
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
Code:
iocage execute
will run a command/script in the jail
 

taaangy234

Dabbler
Joined
Dec 7, 2016
Messages
18
I'm not quite understand where to perform step 3-4 on TrueNAS. :( Please help someone!!!


root@freenas[~]# jexec 13 tcsh
root@nextcloud:/ # ./occ preview:generate-all
./occ: command not found.
 
Top